mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
videorate: Reset base timestamp and out_frame_count in any case on SEGMENT_EVENT
Fixes #699187
This commit is contained in:
parent
2cc6a62b31
commit
aec0e48aa1
1 changed files with 4 additions and 3 deletions
|
@ -711,12 +711,13 @@ gst_video_rate_sink_event (GstBaseTransform * trans, GstEvent * event)
|
|||
gst_video_rate_notify_drop (videorate);
|
||||
}
|
||||
/* clean up for the new one; _chain will resume from the new start */
|
||||
videorate->base_ts = 0;
|
||||
videorate->out_frame_count = 0;
|
||||
gst_video_rate_swap_prev (videorate, NULL, 0);
|
||||
videorate->next_ts = GST_CLOCK_TIME_NONE;
|
||||
}
|
||||
|
||||
videorate->base_ts = 0;
|
||||
videorate->out_frame_count = 0;
|
||||
videorate->next_ts = GST_CLOCK_TIME_NONE;
|
||||
|
||||
/* We just want to update the accumulated stream_time */
|
||||
gst_segment_copy_into (segment, &videorate->segment);
|
||||
|
||||
|
|
Loading…
Reference in a new issue