From: Sebastian Dröge Date: Tue, 18 Aug 2015 13:01:28 +0000 (+0300) Subject: audiodecoder: If there are no tags, don't try to do event handling on a NULL event X-Git-Tag: 1.6.0~42 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6cda5d34946848533b9ef43acd0b35167de98941;p=platform%2Fupstream%2Fgst-plugins-base.git audiodecoder: If there are no tags, don't try to do event handling on a NULL event Fixes some crashes. --- diff --git a/gst-libs/gst/audio/gstaudiodecoder.c b/gst-libs/gst/audio/gstaudiodecoder.c index d6a5e63..f4c663a 100644 --- a/gst-libs/gst/audio/gstaudiodecoder.c +++ b/gst-libs/gst/audio/gstaudiodecoder.c @@ -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 */