mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-09 05:38:58 +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);
|
gst_audio_channel_positions_to_valid_order (ainfo.position, faad->channels);
|
||||||
memcpy (faad->gst_positions, ainfo.position,
|
memcpy (faad->gst_positions, ainfo.position,
|
||||||
faad->channels * sizeof (GstAudioChannelPosition));
|
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);
|
caps = gst_audio_info_to_caps (&ainfo);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue