[0.11] gst-plugins-bad: faad: Unset the UNPOSITIONED flag if we have valid channel positions

Sebastian Dröge slomo at kemper.freedesktop.org
Wed Jan 11 01:51:09 PST 2012


Module: gst-plugins-bad
Branch: 0.11
Commit: 545068efd837a90964af1de5d67ba23c2d908bb4
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=545068efd837a90964af1de5d67ba23c2d908bb4

Author: Sebastian Dröge <sebastian.droege at collabora.co.uk>
Date:   Wed Jan 11 10:50:52 2012 +0100

faad: Unset the UNPOSITIONED flag if we have valid channel positions

---

 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 95c04df..09fdf41 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);
 



More information about the gstreamer-commits mailing list