mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-05-02 20:18:07 +02:00
module-si-audio-adapter: Do not set channels if parsed result is 0
This commit is contained in:
parent
98d968caa6
commit
217f2babdf
1 changed files with 1 additions and 1 deletions
|
|
@ -350,7 +350,7 @@ parse_adapter_format (WpSpaPod *format, gint *channels,
|
|||
/* position is optional */
|
||||
wp_spa_pod_parser_get (parser, "position", "P", &p, NULL);
|
||||
|
||||
if (channels)
|
||||
if (channels && c != 0)
|
||||
*channels = c;
|
||||
if (position)
|
||||
*position = p ? wp_spa_pod_ref (p) : NULL;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue