From: Vincent Penquerc'h Date: Fri, 8 Jun 2012 11:43:41 +0000 (+0100) Subject: audiodecoder: push queued events only when we have a first buffer X-Git-Tag: 1.19.3~511^2~6335 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f8b87110814d575bda07c717437296cecd8dbed7;p=platform%2Fupstream%2Fgstreamer.git audiodecoder: push queued events only when we have a first buffer https://bugzilla.gnome.org/show_bug.cgi?id=675812 --- diff --git a/gst-libs/gst/audio/gstaudiodecoder.c b/gst-libs/gst/audio/gstaudiodecoder.c index 00f879b..a37d7a7 100644 --- a/gst-libs/gst/audio/gstaudiodecoder.c +++ b/gst-libs/gst/audio/gstaudiodecoder.c @@ -859,7 +859,7 @@ gst_audio_decoder_finish_frame (GstAudioDecoder * dec, GstBuffer * buf, GST_AUDIO_DECODER_STREAM_LOCK (dec); - if (priv->pending_events) { + if (buf && priv->pending_events) { GList *pending_events, *l; pending_events = priv->pending_events;