diff --git a/sys/decklink/gstdecklinkaudiosink.cpp b/sys/decklink/gstdecklinkaudiosink.cpp index 1d631548f3..beabc02506 100644 --- a/sys/decklink/gstdecklinkaudiosink.cpp +++ b/sys/decklink/gstdecklinkaudiosink.cpp @@ -152,12 +152,12 @@ public: g_mutex_init (&m_mutex); } - virtual HRESULT QueryInterface (REFIID, LPVOID *) + virtual HRESULT WINAPI QueryInterface (REFIID, LPVOID *) { return E_NOINTERFACE; } - virtual ULONG AddRef (void) + virtual ULONG WINAPI AddRef (void) { ULONG ret; @@ -169,7 +169,7 @@ public: return ret; } - virtual ULONG Release (void) + virtual ULONG WINAPI Release (void) { ULONG ret; @@ -190,7 +190,7 @@ public: g_mutex_clear (&m_mutex); } - virtual HRESULT RenderAudioSamples (bool preroll) + virtual HRESULT WINAPI RenderAudioSamples (bool preroll) { guint8 *ptr; gint seg; diff --git a/sys/decklink/gstdecklinkvideosink.cpp b/sys/decklink/gstdecklinkvideosink.cpp index 78f5726fa1..0c2b3048cf 100644 --- a/sys/decklink/gstdecklinkvideosink.cpp +++ b/sys/decklink/gstdecklinkvideosink.cpp @@ -38,12 +38,12 @@ public: g_mutex_init (&m_mutex); } - virtual HRESULT QueryInterface (REFIID, LPVOID *) + virtual HRESULT WINAPI QueryInterface (REFIID, LPVOID *) { return E_NOINTERFACE; } - virtual ULONG AddRef (void) + virtual ULONG WINAPI AddRef (void) { ULONG ret; @@ -55,7 +55,7 @@ public: return ret; } - virtual ULONG Release (void) + virtual ULONG WINAPI Release (void) { ULONG ret; @@ -71,7 +71,8 @@ public: return ret; } - virtual HRESULT ScheduledFrameCompleted (IDeckLinkVideoFrame * completedFrame, + virtual HRESULT WINAPI ScheduledFrameCompleted ( + IDeckLinkVideoFrame * completedFrame, BMDOutputFrameCompletionResult result) { switch (result) { @@ -96,7 +97,7 @@ public: return S_OK; } - virtual HRESULT ScheduledPlaybackHasStopped (void) + virtual HRESULT WINAPI ScheduledPlaybackHasStopped (void) { GST_LOG_OBJECT (m_sink, "Scheduled playback stopped");