mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
imagefreeze: Set segment position to the stop position of the buffer
This commit is contained in:
parent
4282d75597
commit
859c751a5d
1 changed files with 4 additions and 1 deletions
|
@ -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…
Reference in a new issue