mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
pad: use new segment offset method to apply the offset
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=721422
This commit is contained in:
parent
dc0176e4a0
commit
6d3fc584d5
1 changed files with 3 additions and 2 deletions
|
@ -578,8 +578,9 @@ apply_pad_offset (GstPad * pad, GstEvent * event)
|
||||||
gst_event_copy_segment (event, &segment);
|
gst_event_copy_segment (event, &segment);
|
||||||
gst_event_unref (event);
|
gst_event_unref (event);
|
||||||
|
|
||||||
/* adjust and make a new event with the offset applied */
|
GST_DEBUG_OBJECT (pad, "apply pad offset %" GST_TIME_FORMAT,
|
||||||
segment.base += pad->offset;
|
GST_TIME_ARGS (pad->offset));
|
||||||
|
gst_segment_offset_running_time (&segment, segment.format, pad->offset);
|
||||||
event = gst_event_new_segment (&segment);
|
event = gst_event_new_segment (&segment);
|
||||||
}
|
}
|
||||||
return event;
|
return event;
|
||||||
|
|
Loading…
Reference in a new issue