audiodecoder: push queued events only when we have a first buffer

https://bugzilla.gnome.org/show_bug.cgi?id=675812
This commit is contained in:
Vincent Penquerc'h 2012-06-08 12:43:41 +01:00
parent 0bd8070ebd
commit f8b8711081

View 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;