• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
IsMovieDone
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: IsMovieDone
      • From: Nicholas Riley <email@hidden>
  • Prev by Date: Re: Request for comments: archive for mailing lists
  • Next by Date: Re: IsMovieDone
  • Previous by thread: Re: What's the Deal?
  • Next by thread: Re: IsMovieDone
  • Index(es):
    • Date
    • Thread