imagefreeze: Set segment position to the stop position of the buffer

This commit is contained in:
Sebastian Dröge 2014-05-02 17:12:29 +02:00
parent 4282d75597
commit 859c751a5d

View file

@ -764,8 +764,11 @@ gst_image_freeze_src_loop (GstPad * pad)
gst_segment_clip (&self->segment, GST_FORMAT_TIME, timestamp, gst_segment_clip (&self->segment, GST_FORMAT_TIME, timestamp,
timestamp_end, &cstart, &cstop); timestamp_end, &cstart, &cstop);
if (in_seg) if (in_seg) {
self->segment.position = cstart; self->segment.position = cstart;
if (self->segment.rate >= 0)
self->segment.position = cstop;
}
if (self->segment.rate >= 0) if (self->segment.rate >= 0)
self->offset++; self->offset++;