From aec0e48aa17077daed600468212a632361af7aba Mon Sep 17 00:00:00 2001 From: Mathieu Duponchelle Date: Wed, 8 May 2013 20:31:00 +0200 Subject: [PATCH] videorate: Reset base timestamp and out_frame_count in any case on SEGMENT_EVENT Fixes #699187 --- gst/videorate/gstvideorate.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gst/videorate/gstvideorate.c b/gst/videorate/gstvideorate.c index d79b90c547..75c337184a 100644 --- a/gst/videorate/gstvideorate.c +++ b/gst/videorate/gstvideorate.c @@ -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);