mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-11 02:24:13 +00:00
videodecoder: Clear taglist on reception of a STREAM_START event
https://bugzilla.gnome.org/show_bug.cgi?id=705109
This commit is contained in:
parent
b22f046cbc
commit
17eb692c6a
1 changed files with 9 additions and 0 deletions
|
@ -983,6 +983,15 @@ gst_video_decoder_sink_event_default (GstVideoDecoder * decoder,
|
|||
flow_ret = gst_video_decoder_drain_out (decoder, FALSE);
|
||||
ret = (flow_ret == GST_FLOW_OK);
|
||||
|
||||
GST_DEBUG_OBJECT (decoder, "received STREAM_START. Clearing taglist");
|
||||
GST_VIDEO_DECODER_STREAM_LOCK (decoder);
|
||||
/* Flush our merged taglist after a STREAM_START */
|
||||
if (priv->tags)
|
||||
gst_tag_list_unref (priv->tags);
|
||||
priv->tags = NULL;
|
||||
priv->tags_changed = FALSE;
|
||||
GST_VIDEO_DECODER_STREAM_UNLOCK (decoder);
|
||||
|
||||
/* Forward STREAM_START immediately. Everything is drained after
|
||||
* the STREAM_START event and we can forward this event immediately
|
||||
* now without having buffers out of order.
|
||||
|
|
Loading…
Reference in a new issue