imagefreeze: Set segment position to the stop position of the buffer
This commit is contained in:
parent
4282d75597
commit
859c751a5d
@ -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++;
|
||||
|
Loading…
x
Reference in New Issue
Block a user