decklinksrc: Use a more accurate capture time
authorEdward Hervey <edward@centricular.com>
Fri, 26 Feb 2021 10:39:10 +0000 (11:39 +0100)
committerEdward Hervey <bilboed@bilboed.com>
Fri, 26 Feb 2021 13:08:43 +0000 (14:08 +0100)
commit6fe54f7f48dfccde0bdfa1b9cce16de06953799b
tree365f788d966fd6c0d21e9e84894620be26819b4c
parenta9211a50670acf44981f6a8037401b11e454d485
decklinksrc: Use a more accurate capture time

Use the hardware reference clock time when the frame was finished being captured
instead of a time much further down the road.

This improves the stability/accuracy of buffer times.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2040>
sys/decklink/gstdecklink.cpp