mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 13:06:23 +00:00
faad: Unset the UNPOSITIONED flag if we have valid channel positions
This commit is contained in:
parent
b7c53b95c1
commit
545068efd8
1 changed files with 3 additions and 0 deletions
|
@ -512,6 +512,9 @@ gst_faad_update_caps (GstFaad * faad, faacDecFrameInfo * info)
|
|||
gst_audio_channel_positions_to_valid_order (ainfo.position, faad->channels);
|
||||
memcpy (faad->gst_positions, ainfo.position,
|
||||
faad->channels * sizeof (GstAudioChannelPosition));
|
||||
/* Unset UNPOSITIONED flag */
|
||||
if (ainfo.position[0] != GST_AUDIO_CHANNEL_POSITION_NONE)
|
||||
ainfo.flags &= ~GST_AUDIO_FLAG_UNPOSITIONED;
|
||||
|
||||
caps = gst_audio_info_to_caps (&ainfo);
|
||||
|
||||
|
|
Loading…
Reference in a new issue