videosink: Implement more complete BaseSink::get_times() based on the framerate
authorSebastian Dröge <sebastian@centricular.com>
Sat, 26 Dec 2020 12:16:34 +0000 (14:16 +0200)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 14 Jan 2021 11:15:40 +0000 (11:15 +0000)
commit198434e71affadb8b853dac2009d6182156d168d
tree130b5f9eb8948c9b5779c9082e54340f82298467
parent1f06cf60e7707b96c0d4c30d774c7ca2efa7de97
videosink: Implement more complete BaseSink::get_times() based on the framerate

This will only make use of the framerate if the subclass is chaining up
BaseSink::set_caps(). Otherwise it will have the same behaviour as the
basesink default.

Doing so is useful if video buffers don't contain a duration to
calculate a default duration, and various video sinks already implement
a custom version of this.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/986>
gst-libs/gst/video/gstvideosink.c