videoaggregator: Use floor() to calculate current position
authorSeungha Yang <seungha@centricular.com>
Fri, 18 Feb 2022 16:58:20 +0000 (01:58 +0900)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Sat, 19 Feb 2022 06:53:02 +0000 (06:53 +0000)
commita0dc29841ccf7ce6f61c628273aebca3bfdf4feb
tree98be1de49cddb64d1fb7d6e714b083ca6227e1c5
parentcf3d64129bfb050e13c147f15c7b30c5df48c14e
videoaggregator: Use floor() to calculate current position

... instead of round(). Depending on framerate, calculated position
may not be clearly represented by using uint64, 30000/1001 for example.
Then the result of round() can be sliglhtly larger (1ns) than
buffer timestamp. And that will cause unnecessary frame delay.

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