tagdemux: do not cache FLUSH_START/_STOP events

... and similarly so for serialized events.
This commit is contained in:
Mark Nauwelaerts 2010-03-10 14:36:34 +01:00
parent 0f6cf41947
commit 801ad1bc5c

View file

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