From 859c751a5da9a928c1ccf2fd55ff4e05d44fa107 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 2 May 2014 17:12:29 +0200 Subject: [PATCH] imagefreeze: Set segment position to the stop position of the buffer --- gst/imagefreeze/gstimagefreeze.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gst/imagefreeze/gstimagefreeze.c b/gst/imagefreeze/gstimagefreeze.c index 6dd2c6f3a0..6eb65c3e71 100644 --- a/gst/imagefreeze/gstimagefreeze.c +++ b/gst/imagefreeze/gstimagefreeze.c @@ -764,8 +764,11 @@ gst_image_freeze_src_loop (GstPad * pad) gst_segment_clip (&self->segment, GST_FORMAT_TIME, timestamp, timestamp_end, &cstart, &cstop); - if (in_seg) + if (in_seg) { self->segment.position = cstart; + if (self->segment.rate >= 0) + self->segment.position = cstop; + } if (self->segment.rate >= 0) self->offset++;