decklinkaudiosrc: Don't assume that stream time is always valid
authorSeungha Yang <seungha@centricular.com>
Thu, 17 Jun 2021 11:10:35 +0000 (20:10 +0900)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 21 Jun 2021 09:58:46 +0000 (09:58 +0000)
commitba83f29cecf950ca8b41ef476c51f047cc69a110
tree161ad8b4fd2f9734eff78f6a3f40cadf02c88816
parentd7c716d56289bb74dc95cea25eb8601475e57911
decklinkaudiosrc: Don't assume that stream time is always valid

As per SDK doc, IDeckLinkInputCallback::VideoInputFrameArrived
method might not provide video frame and it can be null.
In that case, given stream_time can be invalid.
So, we should not try to convert GST_CLOCK_TIME_NONE
by using gst_clock_adjust_with_calibration()

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