audiodecoder: If there are no tags, don't try to do event handling on a NULL event

Fixes some crashes.
This commit is contained in:
Sebastian Dröge 2015-08-18 16:01:28 +03:00
parent 2de91c32e4
commit 6cda5d3494

View file

@ -2343,6 +2343,12 @@ gst_audio_decoder_sink_eventfunc (GstAudioDecoder * dec, GstEvent * event)
event = gst_audio_decoder_create_merged_tags_event (dec);
dec->priv->taglist_changed = FALSE;
GST_AUDIO_DECODER_STREAM_UNLOCK (dec);
/* No tags, go out of here instead of fall through */
if (!event) {
ret = TRUE;
break;
}
}
/* fall through */