mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-05-05 19:28:01 +02:00
modules: fix default audio format segfault
This commit is contained in:
parent
1b48e068ce
commit
47896503a8
2 changed files with 2 additions and 2 deletions
|
|
@ -264,7 +264,7 @@ build_adapter_format (WpSiAudioAdapter * self, guint32 format, gint channels,
|
|||
wp_spa_pod_builder_add_int (b, channels);
|
||||
if (position) {
|
||||
wp_spa_pod_builder_add_property (b, "position");
|
||||
wp_spa_pod_builder_add_pod (b, pos);
|
||||
wp_spa_pod_builder_add_pod (b, position);
|
||||
}
|
||||
return wp_spa_pod_builder_end (b);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -471,7 +471,7 @@ build_endpoint_format (WpSiAudioEndpoint * self, guint32 format, gint channels,
|
|||
wp_spa_pod_builder_add_int (b, channels);
|
||||
if (position) {
|
||||
wp_spa_pod_builder_add_property (b, "position");
|
||||
wp_spa_pod_builder_add_pod (b, pos);
|
||||
wp_spa_pod_builder_add_pod (b, position);
|
||||
}
|
||||
return wp_spa_pod_builder_end (b);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue