diff --git a/gst-libs/gst/audio/gstaudiodecoder.c b/gst-libs/gst/audio/gstaudiodecoder.c index 00f879b9db..a37d7a7d09 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;