X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/42c37decc53971441199dfe4d8adf7fb842b2336..adb8a71bbc0ba11aad0b417db24f7267a250b6c3:/contrib/src/mmedia/vidwin.cpp diff --git a/contrib/src/mmedia/vidwin.cpp b/contrib/src/mmedia/vidwin.cpp index 1d9bf5c7c1..d5f1c4741e 100644 --- a/contrib/src/mmedia/vidwin.cpp +++ b/contrib/src/mmedia/vidwin.cpp @@ -18,7 +18,9 @@ #include "wx/wx.h" #endif -#if defined(__WINDOWS__) && !defined(__GNUWIN32__) && !defined(__WATCOMC__) +#if defined(__WINDOWS__) && !defined(__MINGW32__) && !defined(__WATCOMC__) +// versions of Open Watcom and MinGW tested against this source does not +// deliver "digitalv.h" required in this feature #ifdef __BORLANDC__ #pragma hdrstop @@ -86,7 +88,7 @@ void wxVideoWindows::OpenFile() MCI_STATUS_PARMS statusStruct; openStruct.lpstrDeviceType = _T("avivideo"); - openStruct.lpstrElementName = (wxChar *)m_filename.mb_str().data(); + openStruct.lpstrElementName = (wxChar *)m_filename.c_str(); openStruct.hWndParent = 0; mciSendCommand(0, MCI_OPEN, @@ -155,7 +157,7 @@ bool wxVideoWindows::SetSize(wxSize WXUNUSED(size)) return TRUE; } -bool wxVideoWindows::IsCapable(wxVideoType v_type) +bool wxVideoWindows::IsCapable(wxVideoType v_type) const { return (v_type == wxVIDEO_MSAVI); }