Merge pull request #21 from foxtacles/hotfix-isle

Fix broken MxOmniCreateParam ctor interface
This commit is contained in:
MattKC 2023-06-18 00:31:26 -07:00 committed by GitHub
commit 5c74ddc9ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -1,9 +1,9 @@
#include "mxomnicreateparam.h" #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_mediaPath = mediaPath;
this->m_windowHandle = windowHandle; this->m_windowHandle = (HWND) windowHandle;
this->m_videoParam = vparam; this->m_videoParam = vparam;
this->m_createFlags = flags; this->m_createFlags = flags;
} }

View file

@ -11,7 +11,7 @@
class MxOmniCreateParam : public MxOmniCreateParamBase class MxOmniCreateParam : public MxOmniCreateParamBase
{ {
public: 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 // virtual void vtable00(); seems to be a destructor
const MxOmniCreateFlags& CreateFlags() const { return this->m_createFlags; } const MxOmniCreateFlags& CreateFlags() const { return this->m_createFlags; }