diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2012-01-11 10:50:52 +0100 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2012-01-11 10:50:52 +0100 |
commit | 545068efd837a90964af1de5d67ba23c2d908bb4 (patch) | |
tree | eb44a49e41932af7a0375a56f86fe22667e7e8dd | |
parent | b7c53b95c1f155fedde73925e571b6b69af8dfbd (diff) |
faad: Unset the UNPOSITIONED flag if we have valid channel positions
-rw-r--r-- | ext/faad/gstfaad.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/faad/gstfaad.c b/ext/faad/gstfaad.c index 95c04df60..09fdf41fb 100644 --- a/ext/faad/gstfaad.c +++ b/ext/faad/gstfaad.c @@ -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); |