decklink: Detect gaps on incoming stream times, issue warnings
authorVivia Nikolaidou <vivia@ahiru.eu>
Wed, 26 Apr 2017 16:05:21 +0000 (19:05 +0300)
committerVivia Nikolaidou <vivia@ahiru.eu>
Thu, 4 Jan 2018 13:43:17 +0000 (15:43 +0200)
commita3a7d2e0ff2d55832d1149055480b58418397dde
tree498946b0a2cf905a834dde94eb93d5fc31248cbf
parent42a03a812483d3cfe6d78c2b0b7c1e0df22ef61e
decklink: Detect gaps on incoming stream times, issue warnings

When we receive a video or audio buffer, we calculate the next stream
time based on the current stream time + buffer duration. If the next
buffer's stream time is after that, we issue a warning.

This happens because the stream time incoming from Decklink should be
really constant and without gaps. If there is a gap, it means that
something went wrong, e.g. the internal buffer pool is empty (too many
buffers queued up downstream).

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