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
@ -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…
x
Reference in New Issue
Block a user