mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
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:
parent
09141c6e1f
commit
584c4c6282
1 changed files with 1 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue