concat: Also reset the current start offset when receiving a FLUSH_STOP on the srcpad

This commit is contained in:
Sebastian Dröge 2015-06-11 11:05:53 +02:00
parent c324e31c26
commit d8db88d078

View file

@ -626,6 +626,19 @@ gst_concat_src_event (GstPad * pad, GstObject * parent, GstEvent * event)
}
break;
}
case GST_EVENT_FLUSH_STOP:{
gboolean reset_time;
gst_event_parse_flush_stop (event, &reset_time);
if (reset_time) {
GST_DEBUG_OBJECT (self,
"resetting start offset to 0 after flushing with reset_time = TRUE");
self->current_start_offset = 0;
}
ret = gst_pad_event_default (pad, parent, event);
break;
}
default:
ret = gst_pad_event_default (pad, parent, event);
break;