+ if (movie != nil)
+ {
+ [m_movie setBackend:this];
+ [m_movieview setMovie:movie];
+
+ // If the media file is able to be loaded quickly then there may not be
+ // any QTMovieLoadStateDidChangeNotification message sent, so we need to
+ // also check the load state here and finish our initialization if it has
+ // been loaded.
+ long loadState = [[m_movie attributeForKey:QTMovieLoadStateAttribute] longValue];
+ if (loadState >= QTMovieLoadStateComplete)
+ {
+ FinishLoad();
+ }
+ }