audiodecoder: push queued events only when we have a first buffer
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Fri, 8 Jun 2012 11:43:41 +0000 (12:43 +0100)
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Mon, 11 Jun 2012 10:29:13 +0000 (11:29 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=675812

gst-libs/gst/audio/gstaudiodecoder.c

index 00f879b..a37d7a7 100644 (file)
@@ -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;