mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +00:00
tagdemux: do not cache FLUSH_START/_STOP events
... and similarly so for serialized events.
This commit is contained in:
parent
0f6cf41947
commit
801ad1bc5c
1 changed files with 5 additions and 1 deletions
|
@ -756,8 +756,12 @@ gst_tag_demux_sink_event (GstPad * pad, GstEvent * event)
|
|||
ret = TRUE;
|
||||
break;
|
||||
}
|
||||
case GST_EVENT_FLUSH_STOP:
|
||||
case GST_EVENT_FLUSH_START:
|
||||
ret = gst_pad_event_default (pad, event);
|
||||
break;
|
||||
default:
|
||||
if (demux->priv->need_newseg) {
|
||||
if (demux->priv->need_newseg && GST_EVENT_IS_SERIALIZED (event)) {
|
||||
/* Cache all events if we have a pending segment, so they don't get
|
||||
* lost (esp. tag events) */
|
||||
GST_INFO_OBJECT (demux, "caching event: %" GST_PTR_FORMAT, event);
|
||||
|
|
Loading…
Reference in a new issue