mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
scaletempo: properly update new segments
Scaletempo was missing an update of 'stop' in new segment parameters when pushing it downstream, which caused files to end earlier when rate < 1. Fixes #599903 Based on patch by: Bastian Hecht <hechtb@gmail.com>
This commit is contained in:
parent
2fe7a97f1c
commit
2d72ec153a
1 changed files with 1 additions and 1 deletions
|
@ -555,7 +555,7 @@ gst_scaletempo_sink_event (GstBaseTransform * trans, GstEvent * event)
|
||||||
rate = 1.0;
|
rate = 1.0;
|
||||||
//gst_event_unref (event);
|
//gst_event_unref (event);
|
||||||
event = gst_event_new_new_segment_full (update, rate, applied_rate,
|
event = gst_event_new_new_segment_full (update, rate, applied_rate,
|
||||||
format, start, stop, position);
|
format, start, (stop - start) / applied_rate + start, position);
|
||||||
gst_pad_push_event (GST_BASE_TRANSFORM_SRC_PAD (trans), event);
|
gst_pad_push_event (GST_BASE_TRANSFORM_SRC_PAD (trans), event);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue