X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b20907ef2dbae2ce3b94e50107012165d7f0b917..bbd92d1dbea02db8c28e9c17bfacc0563d855b25:/src/mac/carbon/mediactrl.cpp diff --git a/src/mac/carbon/mediactrl.cpp b/src/mac/carbon/mediactrl.cpp index 210b7d930e..639114a1f1 100644 --- a/src/mac/carbon/mediactrl.cpp +++ b/src/mac/carbon/mediactrl.cpp @@ -57,6 +57,14 @@ #include #endif +#if !defined(__LP64__) +#define USE_QUICKTIME 1 +#else +#define USE_QUICKTIME 0 +#endif + +#if USE_QUICKTIME + //--------------------------------------------------------------------------- // Height and Width of movie controller in the movie control (apple samples) //--------------------------------------------------------------------------- @@ -472,7 +480,7 @@ bool wxQTMediaBackend::Load(const wxURI& location) const char* theURIString; #if wxUSE_UNICODE - wxCharBuffer buf = wxConvLocal.cWC2MB(theURI, theURI.length(), &len); + wxCharBuffer buf = wxConvLocal.cWC2MB(theURI.wc_str(), theURI.length(), &len); theURIString = buf; #else theURIString = theURI; @@ -1118,7 +1126,7 @@ void wxQTMediaBackend::MacVisibilityChanged() // Suggestion from Greg Hazel to repaint the movie when idle // (on pause also) //--------------------------------------------------------------------------- -void wxQTMediaEvtHandler::OnEraseBackground(wxEraseEvent& evt) +void wxQTMediaEvtHandler::OnEraseBackground(wxEraseEvent& WXUNUSED(evt)) { // Work around Nasty OSX drawing bug: // http://lists.apple.com/archives/QuickTime-API/2002/Feb/msg00311.html @@ -1193,7 +1201,7 @@ pascal Boolean wxQTMediaBackend::MCFilterProc( // messages to our moviecontroller so it can receive mouse clicks etc. //--------------------------------------------------------------------------- pascal OSStatus wxQTMediaBackend::WindowEventHandler( - EventHandlerCallRef inHandlerCallRef, + EventHandlerCallRef WXUNUSED(inHandlerCallRef), EventRef inEvent, void *inUserData) { @@ -1226,6 +1234,8 @@ pascal OSStatus wxQTMediaBackend::WindowEventHandler( return eventNotHandledErr; } +#endif + // in source file that contains stuff you don't directly use #include "wx/html/forcelnk.h" FORCE_LINK_ME(basewxmediabackends)