decklinksrc: Stop using the "hardware" timestamps and directly use the pipeline clock
authorSebastian Dröge <sebastian@centricular.com>
Tue, 22 Nov 2016 17:30:27 +0000 (19:30 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 28 Nov 2016 12:27:51 +0000 (14:27 +0200)
commit881a08671eda4324b6ad781a9d3ddf82f1813cbb
tree8ae0b86ec4d8d79c4782854dde4d362dc95d1ce1
parent423e4593aabb5d86ec66975cbc618d423e8817bc
decklinksrc: Stop using the "hardware" timestamps and directly use the pipeline clock

The hardware timestamps have no relation to when frames were produced,
only when frames arrived somewhere in the hardware. Especially there is
no guarantee that audio and video will have the same hardware timestamps
although they belong together, and even more important: the rate with
which the hardware timestamps increase is completely unrelated to the
rate with which the frames are captured!

As such we can as well use the pipeline clock directly and stop doing
complicated calculations. Also as a side effect this allows now running
without any pipeline clock, by directly making use of the stream times
as reported by the driver.

https://bugzilla.gnome.org/show_bug.cgi?id=774850
sys/decklink/gstdecklink.cpp
sys/decklink/gstdecklink.h
sys/decklink/gstdecklinkaudiosrc.cpp
sys/decklink/gstdecklinkvideosink.cpp
sys/decklink/gstdecklinkvideosrc.cpp
sys/decklink/gstdecklinkvideosrc.h