summaryrefslogtreecommitdiff
path: root/gst/imagefreeze
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2014-05-02 17:12:29 +0200
committerSebastian Dröge <sebastian@centricular.com>2014-05-02 17:14:29 +0200
commit859c751a5da9a928c1ccf2fd55ff4e05d44fa107 (patch)
treeb4c996de3497046c4a3b34ea32ca024034829dc3 /gst/imagefreeze
parent4282d7559716b64afc3ae39937878787fa96c983 (diff)
downloadgstreamer-plugins-good-859c751a5da9a928c1ccf2fd55ff4e05d44fa107.tar.gz
imagefreeze: Set segment position to the stop position of the buffer
Diffstat (limited to 'gst/imagefreeze')
-rw-r--r--gst/imagefreeze/gstimagefreeze.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gst/imagefreeze/gstimagefreeze.c b/gst/imagefreeze/gstimagefreeze.c
index 6dd2c6f3a..6eb65c3e7 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++;