mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-14 03:54:11 +00:00
decklink: Fix compiler warning with gcc
gstdecklink.cpp: In member function 'virtual HRESULT GStreamerDecklinkInputCallback::VideoInputFrameArrived(IDeckLinkVideoInputFrame*, IDeckLinkAudioInputPacket*)': gstdecklink.cpp:498:22: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare] if (capture_time > m_input->clock_start_time) ^ gstdecklink.cpp:503:22: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare] if (capture_time > m_input->clock_offset) ^
This commit is contained in:
parent
f0e85023c2
commit
b739cf8b7f
1 changed files with 2 additions and 2 deletions
|
@ -495,12 +495,12 @@ public:
|
|||
|
||||
g_mutex_lock (&m_input->lock);
|
||||
|
||||
if (capture_time > m_input->clock_start_time)
|
||||
if (capture_time > (BMDTimeValue) m_input->clock_start_time)
|
||||
capture_time -= m_input->clock_start_time;
|
||||
else
|
||||
capture_time = 0;
|
||||
|
||||
if (capture_time > m_input->clock_offset)
|
||||
if (capture_time > (BMDTimeValue) m_input->clock_offset)
|
||||
capture_time -= m_input->clock_offset;
|
||||
else
|
||||
capture_time = 0;
|
||||
|
|
Loading…
Reference in a new issue