decklink: Fix compiler warning

gstdecklink.cpp: In member function ‘virtual HRESULT GStreamerDecklinkInputCallback::VideoInputFrameArrived(IDeckLinkVideoInputFrame*, IDeckLinkAudioInputPacket*)’:
gstdecklink.cpp:766:34: error: ‘base_time’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
         capture_time -= base_time;
                                  ^
This commit is contained in:
Sebastian Dröge 2016-11-29 15:35:09 +02:00
parent 03615a772a
commit 5725bad218

View file

@ -736,7 +736,7 @@ public:
GstClockTime packet_time, gboolean no_signal) = NULL; GstClockTime packet_time, gboolean no_signal) = NULL;
GstDecklinkModeEnum mode; GstDecklinkModeEnum mode;
GstClockTime capture_time = GST_CLOCK_TIME_NONE; GstClockTime capture_time = GST_CLOCK_TIME_NONE;
GstClockTime base_time; GstClockTime base_time = 0;
gboolean no_signal = FALSE; gboolean no_signal = FALSE;
GstClock *clock = NULL; GstClock *clock = NULL;
HRESULT res; HRESULT res;