mssdemux: handle FLUSH events by resetting the demuxer state

This commit is contained in:
Louis-Francis Ratté-Boulianne 2013-02-01 17:44:04 -05:00 committed by Thiago Santos
parent 4a630f86f8
commit 8ab3d09f81

View file

@ -447,6 +447,9 @@ gst_mss_demux_event (GstPad * pad, GstEvent * event)
gboolean ret = TRUE;
switch (GST_EVENT_TYPE (event)) {
case GST_EVENT_FLUSH_STOP:
gst_mss_demux_reset (mssdemux);
break;
case GST_EVENT_EOS:
if (mssdemux->manifest_buffer == NULL) {
GST_WARNING_OBJECT (mssdemux, "Received EOS without a manifest.");