From c0d45e61e502ecdddcc22fbd48cb507bf86684ca Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sat, 2 Oct 2010 02:00:38 +0200 Subject: [PATCH 1/1] Move a function to the class definition. --- modules/access/decklink.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/modules/access/decklink.cpp b/modules/access/decklink.cpp index 1afee5450c..690d39af09 100644 --- a/modules/access/decklink.cpp +++ b/modules/access/decklink.cpp @@ -159,7 +159,12 @@ public: return new_ref; } - virtual HRESULT STDMETHODCALLTYPE VideoInputFormatChanged(BMDVideoInputFormatChangedEvents, IDeckLinkDisplayMode*, BMDDetectedVideoInputFormatFlags); + virtual HRESULT STDMETHODCALLTYPE VideoInputFormatChanged(BMDVideoInputFormatChangedEvents, IDeckLinkDisplayMode*, BMDDetectedVideoInputFormatFlags) + { + msg_Dbg( p_demux_, "Video input format changed" ); + return S_OK; + } + virtual HRESULT STDMETHODCALLTYPE VideoInputFrameArrived(IDeckLinkVideoInputFrame*, IDeckLinkAudioInputPacket*); private: @@ -167,12 +172,6 @@ private: demux_t *p_demux_; }; -HRESULT DeckLinkCaptureDelegate::VideoInputFormatChanged(BMDVideoInputFormatChangedEvents events, IDeckLinkDisplayMode *mode, BMDDetectedVideoInputFormatFlags) -{ - msg_Dbg( p_demux_, "Video input format changed" ); - return S_OK; -} - HRESULT DeckLinkCaptureDelegate::VideoInputFrameArrived(IDeckLinkVideoInputFrame* videoFrame, IDeckLinkAudioInputPacket* audioFrame) { demux_sys_t *p_sys = p_demux_->p_sys; -- 2.39.2