audiodecoder: Clear taglist on reception of a STREAM_START event

https://bugzilla.gnome.org/show_bug.cgi?id=705109
This commit is contained in:
Youness Alaoui 2013-07-25 20:47:02 -04:00 committed by Sebastian Dröge
parent 17eb692c6a
commit ca2a515373

View file

@ -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);