diff --git a/gst/mpegtsdemux/mpegtsbase.c b/gst/mpegtsdemux/mpegtsbase.c index d6bd41049b..e8db15bbce 100644 --- a/gst/mpegtsdemux/mpegtsbase.c +++ b/gst/mpegtsdemux/mpegtsbase.c @@ -1361,14 +1361,13 @@ mpegts_base_sink_event (GstPad * pad, GstObject * parent, GstEvent * event) /* FIXME, do something */ gst_event_unref (event); break; - case GST_EVENT_FLUSH_START: + case GST_EVENT_FLUSH_STOP: + res = GST_MPEGTS_BASE_GET_CLASS (base)->push_event (base, event); mpegts_packetizer_flush (base->packetizer); mpegts_base_flush (base); - res = GST_MPEGTS_BASE_GET_CLASS (base)->push_event (base, event); - break; - case GST_EVENT_FLUSH_STOP: gst_segment_init (&base->segment, GST_FORMAT_UNDEFINED); base->seen_pat = FALSE; + break; /* Passthrough */ default: res = GST_MPEGTS_BASE_GET_CLASS (base)->push_event (base, event);