From f8b87110814d575bda07c717437296cecd8dbed7 Mon Sep 17 00:00:00 2001 From: Vincent Penquerc'h Date: Fri, 8 Jun 2012 12:43:41 +0100 Subject: [PATCH] audiodecoder: push queued events only when we have a first buffer https://bugzilla.gnome.org/show_bug.cgi?id=675812 --- gst-libs/gst/audio/gstaudiodecoder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.7.4