From b20907ef2dbae2ce3b94e50107012165d7f0b917 Mon Sep 17 00:00:00 2001 From: Kevin Ollivier Date: Wed, 8 Nov 2006 22:26:44 +0000 Subject: [PATCH 1/1] 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 --- src/mac/carbon/mediactrl.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) 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); -- 2.45.2