mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
assrender: Reset segments on FLUSH_STOP events
This commit is contained in:
parent
1cf221f4f4
commit
229d50d309
1 changed files with 3 additions and 0 deletions
|
@ -776,6 +776,8 @@ gst_assrender_event_video (GstPad * pad, GstEvent * event)
|
|||
ret = gst_pad_event_default (pad, event);
|
||||
break;
|
||||
}
|
||||
case GST_EVENT_FLUSH_STOP:
|
||||
gst_segment_init (&render->video_segment, GST_FORMAT_TIME);
|
||||
default:
|
||||
ret = gst_pad_event_default (pad, event);
|
||||
break;
|
||||
|
@ -831,6 +833,7 @@ gst_assrender_event_text (GstPad * pad, GstEvent * event)
|
|||
break;
|
||||
}
|
||||
case GST_EVENT_FLUSH_STOP:
|
||||
gst_segment_init (&render->subtitle_segment, GST_FORMAT_TIME);
|
||||
render->subtitle_flushing = FALSE;
|
||||
gst_event_unref (event);
|
||||
ret = TRUE;
|
||||
|
|
Loading…
Reference in a new issue