concat: Reset last_stop on FLUSH_STOP too

Otherwise when seeking backwards we would keep the last_stop at the last
position we saw until playback passed the seek position again, and if
switching to the next pad happens in the meantime we would set the wrong
offset in the outgoing segment.
This commit is contained in:
Sebastian Dröge 2019-06-04 17:55:30 +03:00 committed by Nicolas Dufresne
parent 09141c6e1f
commit 584c4c6282

View file

@ -655,6 +655,7 @@ gst_concat_sink_event (GstPad * pad, GstObject * parent, GstEvent * event)
GST_DEBUG_OBJECT (self,
"resetting start offset to 0 after flushing with reset_time = TRUE");
self->current_start_offset = 0;
self->last_stop = GST_CLOCK_TIME_NONE;
}
ret = gst_pad_event_default (pad, parent, event);
} else {