mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
videosink: Don't return unknown end-time from get_times()
... in case of reverse playback. Otherwise basesink will not wait for clock Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3121>
This commit is contained in:
parent
235be306fd
commit
c9f12b5086
1 changed files with 6 additions and 0 deletions
|
@ -273,6 +273,12 @@ gst_video_sink_get_times (GstBaseSink * bsink, GstBuffer * buffer,
|
|||
*end = timestamp +
|
||||
gst_util_uint64_scale_int (GST_SECOND, vsink->priv->info.fps_d,
|
||||
vsink->priv->info.fps_n);
|
||||
} else if (bsink->segment.rate < 0) {
|
||||
/* The end time will be used for clock waiting time position
|
||||
* in case of revese playback, and unknown end time will result in
|
||||
* never waiting for clock (as if sync=false).
|
||||
* Returning timestamp here would be the best effort we can do */
|
||||
*end = timestamp;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue