mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +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) {
|
if (invalid) {
|
||||||
for (i = 0; i < channels; i++)
|
for (i = 0; i < channels; i++)
|
||||||
pos[i] = GST_AUDIO_CHANNEL_POSITION_NONE;
|
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;
|
return spec;
|
||||||
|
|
Loading…
Reference in a new issue