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:
Arun Raghavan 2012-08-14 15:38:27 +05:30 committed by Wim Taymans
parent e317d88eaa
commit 1a8512986a

View file

@ -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;