IsMovieDone
IsMovieDone
- Subject: IsMovieDone
- From: Anthony Arthur <email@hidden>
- Date: Sun, 22 Sep 2002 19:28:36 -0400
I am getting a sementation fault using this function. This is the
error:
exited due to signal 11 (SIGSEGV).
I am using it within a timed method where I want to invalidate the
timer once the movie is done. I get the Movie QT object with QTMovie.
This is what it looks like:
//This in a NSMovieView category
- (void)spoolMovieInTimer:(NSTimer*)aTimer
{
void* controller = [self movieController];
Movie* movie = NULL;
movie = (Movie*)[[self movie] QTMovie];
//this is where it craps out
if ( IsMovieDone( *movie ) == TRUE ) {
[aTimer invalidate];
}else{
MCDoAction(controller, mcActionIdle, NULL);
}
}
Anyone see something I am doing wrong. Ideally I would prefer a QT
operation that tells me when the movie has completely downloaded.
IsMovieDone is the closest I can find..., would appreciate any tips
there also.
-b
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.