From ca2a5153739955e99bd166b136384d15ffe41986 Mon Sep 17 00:00:00 2001 From: Youness Alaoui Date: Thu, 25 Jul 2013 20:47:02 -0400 Subject: [PATCH] audiodecoder: Clear taglist on reception of a STREAM_START event https://bugzilla.gnome.org/show_bug.cgi?id=705109 --- gst-libs/gst/audio/gstaudiodecoder.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gst-libs/gst/audio/gstaudiodecoder.c b/gst-libs/gst/audio/gstaudiodecoder.c index 0da8356..7d1d0d5 100644 --- a/gst-libs/gst/audio/gstaudiodecoder.c +++ b/gst-libs/gst/audio/gstaudiodecoder.c @@ -1701,6 +1701,14 @@ gst_audio_decoder_sink_eventfunc (GstAudioDecoder * dec, GstEvent * event) case GST_EVENT_STREAM_START: GST_AUDIO_DECODER_STREAM_LOCK (dec); gst_audio_decoder_drain (dec); + + GST_DEBUG_OBJECT (dec, "received STREAM_START. Clearing taglist"); + /* Flush our merged taglist after a STREAM_START */ + if (dec->priv->taglist) { + gst_tag_list_unref (dec->priv->taglist); + dec->priv->taglist = NULL; + } + dec->priv->taglist_changed = FALSE; GST_AUDIO_DECODER_STREAM_UNLOCK (dec); ret = gst_audio_decoder_push_event (dec, event); -- 2.7.4