From b51d74f642556f923280e01647f4a176972dc4e2 Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Sat, 17 Jun 2023 22:03:09 +0200 Subject: [PATCH 1/2] fix broken MxOmniCreateParam ctor interface --- LEGO1/mxomnicreateparam.cpp | 4 ++-- LEGO1/mxomnicreateparam.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/LEGO1/mxomnicreateparam.cpp b/LEGO1/mxomnicreateparam.cpp index 06a3567c..bc5b71c8 100644 --- a/LEGO1/mxomnicreateparam.cpp +++ b/LEGO1/mxomnicreateparam.cpp @@ -1,9 +1,9 @@ #include "mxomnicreateparam.h" -MxOmniCreateParam::MxOmniCreateParam(const char *mediaPath, HWND windowHandle, MxVideoParam &vparam, MxOmniCreateFlags flags) +MxOmniCreateParam::MxOmniCreateParam(const char *mediaPath, struct HWND__ * windowHandle, MxVideoParam &vparam, MxOmniCreateFlags flags) { this->m_mediaPath = mediaPath; - this->m_windowHandle = windowHandle; + this->m_windowHandle = (HWND) windowHandle; this->m_videoParam = vparam; this->m_createFlags = flags; } diff --git a/LEGO1/mxomnicreateparam.h b/LEGO1/mxomnicreateparam.h index c1e8570f..3729e969 100644 --- a/LEGO1/mxomnicreateparam.h +++ b/LEGO1/mxomnicreateparam.h @@ -11,7 +11,7 @@ class MxOmniCreateParam : public MxOmniCreateParamBase { public: - __declspec(dllexport) MxOmniCreateParam(const char *mediaPath, HWND windowHandle, MxVideoParam &vparam, MxOmniCreateFlags flags); + __declspec(dllexport) MxOmniCreateParam(const char *mediaPath, struct HWND__ *windowHandle, MxVideoParam &vparam, MxOmniCreateFlags flags); // virtual void vtable00(); seems to be a destructor const MxOmniCreateFlags& CreateFlags() const { return this->m_createFlags; } From 258b7f861e25e536add9e8de6a6411e50484492c Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Sat, 17 Jun 2023 22:05:40 +0200 Subject: [PATCH 2/2] remove a space --- LEGO1/mxomnicreateparam.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LEGO1/mxomnicreateparam.cpp b/LEGO1/mxomnicreateparam.cpp index bc5b71c8..96bd541d 100644 --- a/LEGO1/mxomnicreateparam.cpp +++ b/LEGO1/mxomnicreateparam.cpp @@ -1,6 +1,6 @@ #include "mxomnicreateparam.h" -MxOmniCreateParam::MxOmniCreateParam(const char *mediaPath, struct HWND__ * windowHandle, MxVideoParam &vparam, MxOmniCreateFlags flags) +MxOmniCreateParam::MxOmniCreateParam(const char *mediaPath, struct HWND__ *windowHandle, MxVideoParam &vparam, MxOmniCreateFlags flags) { this->m_mediaPath = mediaPath; this->m_windowHandle = (HWND) windowHandle;