// Author: Ryan Norton <wxprojects@comcast.net>
// Modified by:
// Created: 11/07/04
-// RCS-ID: $Id$
// Copyright: (c) 2004-2006 Ryan Norton
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
// Dispose of the movie controller
::DisposeMovieController(m_mc);
m_mc = NULL;
-
+
// Dispose of offscreen GWorld
::DisposeGWorld(m_movieWorld);
}
NULL); // wasChanged
// Do not use ::GetMoviesStickyError() here because it returns -2009
- // a.k.a. invalid track on valid mpegs
+ // a.k.a. invalid track on valid mpegs
if (err == noErr && ::GetMoviesError() == noErr)
{
::CloseMovieFile(movieResFile);
void wxQTMediaBackend::Cleanup()
{
m_bPlaying = false;
- if (m_timer)
- {
- delete m_timer;
- m_timer = NULL;
- }
+ wxDELETE(m_timer);
// Stop the movie:
// Apple samples with CreateMovieControl typically
//---------------------------------------------------------------------------
// wxQTMediaBackend::MCFilterProc (static)
//
-// Callback for when the movie controller recieves a message
+// Callback for when the movie controller receives a message
//---------------------------------------------------------------------------
pascal Boolean wxQTMediaBackend::MCFilterProc(
MovieController WXUNUSED(theController),