[0.11] gst-plugins-bad: faad: Make sure that the srcpad has caps before finishing actual audio data

Sebastian Dröge slomo at kemper.freedesktop.org
Mon Jan 9 06:00:25 PST 2012


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

Author: Sebastian Dröge <sebastian.droege at collabora.co.uk>
Date:   Mon Jan  9 14:59:58 2012 +0100

faad: Make sure that the srcpad has caps before finishing actual audio data

---

 ext/faad/gstfaad.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/ext/faad/gstfaad.c b/ext/faad/gstfaad.c
index c2d62c5..95c04df 100644
--- a/ext/faad/gstfaad.c
+++ b/ext/faad/gstfaad.c
@@ -485,7 +485,8 @@ gst_faad_update_caps (GstFaad * faad, faacDecFrameInfo * info)
     }
   }
 
-  if (G_LIKELY (!fmt_change))
+  if (G_LIKELY (gst_pad_has_current_caps (GST_AUDIO_DECODER_SRC_PAD (faad))
+          && !fmt_change))
     return TRUE;
 
 



More information about the gstreamer-commits mailing list