mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 07:38:16 +00:00
concat: Also reset the current start offset when receiving a FLUSH_STOP on the srcpad
This commit is contained in:
parent
c324e31c26
commit
d8db88d078
1 changed files with 13 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue