From da999d7af8bf6847ea8d0297537d5e0f6573c61a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 8 Apr 2016 14:07:55 +0300 Subject: [PATCH] decklink: Initialize capture_time to NONE so it can be used if no video frame is provided but audio is CID 1358390 --- sys/decklink/gstdecklink.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/decklink/gstdecklink.cpp b/sys/decklink/gstdecklink.cpp index 4fdf6b6346..8df23af1bd 100644 --- a/sys/decklink/gstdecklink.cpp +++ b/sys/decklink/gstdecklink.cpp @@ -532,7 +532,7 @@ public: void (*got_audio_packet) (GstElement * videosrc, IDeckLinkAudioInputPacket * packet, GstClockTime capture_time, gboolean discont) = NULL; GstDecklinkModeEnum mode; - BMDTimeValue capture_time, capture_duration; + BMDTimeValue capture_time = GST_CLOCK_TIME_NONE, capture_duration = GST_CLOCK_TIME_NONE; HRESULT res; if (video_frame == NULL)