From 4be752a93cf37700668c604296f37ea08248f13b Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 17 Jun 2018 17:01:43 +0200 Subject: Cleanup: trailing space in source/gameengine/ --- source/gameengine/VideoTexture/DeckLink.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'source/gameengine/VideoTexture/DeckLink.cpp') diff --git a/source/gameengine/VideoTexture/DeckLink.cpp b/source/gameengine/VideoTexture/DeckLink.cpp index fa8ab8c641c..4d25eb8bbd0 100644 --- a/source/gameengine/VideoTexture/DeckLink.cpp +++ b/source/gameengine/VideoTexture/DeckLink.cpp @@ -203,7 +203,7 @@ public: virtual HRESULT STDMETHODCALLTYPE GetBytes(void **buffer) { return mpLeftEye->GetBytes(buffer); } virtual HRESULT STDMETHODCALLTYPE GetTimecode(BMDTimecodeFormat format,IDeckLinkTimecode **timecode) { return mpLeftEye->GetTimecode(format, timecode); } - virtual HRESULT STDMETHODCALLTYPE GetAncillaryData(IDeckLinkVideoFrameAncillary **ancillary) + virtual HRESULT STDMETHODCALLTYPE GetAncillaryData(IDeckLinkVideoFrameAncillary **ancillary) { return mpLeftEye->GetAncillaryData(ancillary); } // IDeckLinkVideoFrame3DExtensions virtual BMDVideo3DPackingFormat STDMETHODCALLTYPE Get3DPackingFormat(void) @@ -385,8 +385,8 @@ static int DeckLink_init(DeckLink *self, PyObject *args, PyObject *kwds) // get parameters if (!PyArg_ParseTupleAndKeywords(args, kwds, "|hs", const_cast(kwlist), &cardIdx, &format)) - return -1; - + return -1; + try { if (format == NULL) { THRWEXCP(AutoDetectionNotAvail, S_OK); @@ -488,9 +488,9 @@ static int DeckLink_init(DeckLink *self, PyObject *args, PyObject *kwds) } } catch (Exception & exp) - { + { printf("DeckLink: exception when opening card %d: %s\n", cardIdx, exp.what()); - exp.report(); + exp.report(); // normally, the object should be deallocated return -1; } @@ -531,7 +531,7 @@ static PyObject *DeckLink_refresh(DeckLink *self, PyObject *args) // no use to do it if we are still in the same rendering frame. // We find this out by looking at the engine current clock time KX_KetsjiEngine* engine = KX_GetActiveEngine(); - if (engine->GetClockTime() != self->m_lastClock) + if (engine->GetClockTime() != self->m_lastClock) { self->m_lastClock = engine->GetClockTime(); // set source refresh @@ -757,7 +757,7 @@ static PyMethodDef decklinkMethods[] = // class DeckLink attributes static PyGetSetDef decklinkGetSets[] = -{ +{ { (char*)"source", (getter)DeckLink_getSource, (setter)DeckLink_setSource, (char*)"source of decklink (left eye)", NULL}, { (char*)"right", (getter)DeckLink_getRight, (setter)DeckLink_setRight, (char*)"source of decklink (right eye)", NULL }, { (char*)"keying", (getter)DeckLink_getKeying, (setter)DeckLink_setKeying, (char*)"whether keying is enabled (frame is alpha-composited with passthrough output)", NULL }, -- cgit v1.2.3