mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 00:31:13 +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,11 +711,12 @@ gst_video_rate_sink_event (GstBaseTransform * trans, GstEvent * event)
|
||||||
gst_video_rate_notify_drop (videorate);
|
gst_video_rate_notify_drop (videorate);
|
||||||
}
|
}
|
||||||
/* clean up for the new one; _chain will resume from the new start */
|
/* clean up for the new one; _chain will resume from the new start */
|
||||||
|
gst_video_rate_swap_prev (videorate, NULL, 0);
|
||||||
|
}
|
||||||
|
|
||||||
videorate->base_ts = 0;
|
videorate->base_ts = 0;
|
||||||
videorate->out_frame_count = 0;
|
videorate->out_frame_count = 0;
|
||||||
gst_video_rate_swap_prev (videorate, NULL, 0);
|
|
||||||
videorate->next_ts = GST_CLOCK_TIME_NONE;
|
videorate->next_ts = GST_CLOCK_TIME_NONE;
|
||||||
}
|
|
||||||
|
|
||||||
/* We just want to update the accumulated stream_time */
|
/* We just want to update the accumulated stream_time */
|
||||||
gst_segment_copy_into (segment, &videorate->segment);
|
gst_segment_copy_into (segment, &videorate->segment);
|
||||||
|
|
Loading…
Reference in a new issue