mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 08:46:40 +00:00
pulse: Clear unpositioned flag when setting positions
If converting a PA channel map to gst channel positions results in a valid set of channel positions, we clear the unpositioned flag from the ringbuffer spec.
This commit is contained in:
parent
e317d88eaa
commit
1a8512986a
1 changed files with 3 additions and 0 deletions
|
@ -279,6 +279,9 @@ gst_pulse_channel_map_to_gst (const pa_channel_map * map,
|
|||
if (invalid) {
|
||||
for (i = 0; i < channels; i++)
|
||||
pos[i] = GST_AUDIO_CHANNEL_POSITION_NONE;
|
||||
} else {
|
||||
if (pos[0] != GST_AUDIO_CHANNEL_POSITION_NONE)
|
||||
spec->info.flags &= ~GST_AUDIO_FLAG_UNPOSITIONED;
|
||||
}
|
||||
|
||||
return spec;
|
||||
|
|
Loading…
Reference in a new issue