From: Kevin Ollivier Date: Wed, 8 Nov 2006 22:26:44 +0000 (+0000) Subject: Fix for incorrect error message report that caused wxMediaCtrl not to play MPEGs. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/b20907ef2dbae2ce3b94e50107012165d7f0b917 Fix for incorrect error message report that caused wxMediaCtrl not to play MPEGs. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43209 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/mac/carbon/mediactrl.cpp b/src/mac/carbon/mediactrl.cpp index 946a3909eb..210b7d930e 100644 --- a/src/mac/carbon/mediactrl.cpp +++ b/src/mac/carbon/mediactrl.cpp @@ -430,13 +430,9 @@ bool wxQTMediaBackend::Load(const wxString& fileName) newMovieActive, NULL); // wasChanged - // - // check GetMoviesStickyError() because it may not find the - // proper codec and play black video and other strange effects, - // not to mention mess up the dynamic backend loading scheme - // of wxMediaCtrl - so it just does what the QuickTime player does - // - if (err == noErr && ::GetMoviesStickyError() == noErr) + // Do not use ::GetMoviesStickyError() here because it returns -2009 + // a.k.a. invalid track on valid mpegs + if (err == noErr && ::GetMoviesError() == noErr) { ::CloseMovieFile(movieResFile);