mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-13 10:55:34 +00:00
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:
parent
2de91c32e4
commit
6cda5d3494
1 changed files with 6 additions and 0 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue