mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-22 23:28:16 +00:00
videoencoder: Keep the segment position in sync
If the start of the segment is modified, the position should be modified accordingly https://bugzilla.gnome.org/show_bug.cgi?id=796576
This commit is contained in:
parent
a4a27fdca8
commit
1208ef637a
1 changed files with 3 additions and 0 deletions
|
@ -939,6 +939,9 @@ gst_video_encoder_push_event (GstVideoEncoder * encoder, GstEvent * event)
|
|||
|
||||
if (encoder->priv->time_adjustment != GST_CLOCK_TIME_NONE) {
|
||||
segment.start += encoder->priv->time_adjustment;
|
||||
if (GST_CLOCK_TIME_IS_VALID (segment.position)) {
|
||||
segment.position += encoder->priv->time_adjustment;
|
||||
}
|
||||
if (GST_CLOCK_TIME_IS_VALID (segment.stop)) {
|
||||
segment.stop += encoder->priv->time_adjustment;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue