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
This commit is contained in:
parent
7564225f8b
commit
b20907ef2d
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user