decklink: Initialize capture_time to NONE so it can be used if no video frame is provided but audio is

CID 1358390
This commit is contained in:
Sebastian Dröge 2016-04-08 14:07:55 +03:00
parent 761171b6d2
commit da999d7af8

View file

@ -532,7 +532,7 @@ public:
void (*got_audio_packet) (GstElement * videosrc, void (*got_audio_packet) (GstElement * videosrc,
IDeckLinkAudioInputPacket * packet, GstClockTime capture_time, gboolean discont) = NULL; IDeckLinkAudioInputPacket * packet, GstClockTime capture_time, gboolean discont) = NULL;
GstDecklinkModeEnum mode; GstDecklinkModeEnum mode;
BMDTimeValue capture_time, capture_duration; BMDTimeValue capture_time = GST_CLOCK_TIME_NONE, capture_duration = GST_CLOCK_TIME_NONE;
HRESULT res; HRESULT res;
if (video_frame == NULL) if (video_frame == NULL)