• 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
Re: Program exits unexpectedly with QTMovie
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Program exits unexpectedly with QTMovie


  • Subject: Re: Program exits unexpectedly with QTMovie
  • From: Tim Lucas <email@hidden>
  • Date: Fri, 17 Jun 2005 16:19:04 +1000

On 14/06/2005, at 3:36 PM, Michael Jurewitz wrote:
I have the following sample code in a project:

#import <Foundation/Foundation.h>
#import <QTkit/QTkit.h>

int main (int argc, const char * argv[]) {
    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];

    QTMovie *theMovie = [QTMovie movieWithFile:@"/Sample.m4p" error:nil];
    
    NSArray *theArray = [theMovie tracks];
    
    NSLog(@"%@ tracks", [theArray count]);

The above line should read: NSLog(@"%d tracks", [theArray count]);

Though this probably won't solve your problem.

    NSLog(@"%@", [theMovie description]);
    
    
    [pool release];
    return 0;
}
When I go to run this program, the program exits at the -movieWithFile method with a status of 45.  I've tried supplying an NSError object, but that doesn't get set, the program exits even before that.  The m4p file is a protected aac file, just fyi.  This method seems to work ok with unprotected files.  Does anyone know what I need to be doing differently to handle protected files?

- tim

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Program exits unexpectedly with QTMovie (From: Michael Jurewitz <email@hidden>)

  • Prev by Date: Re: [RESOLVED] drag-n-drop
  • Next by Date: Re: Generate attributes from model
  • Previous by thread: Program exits unexpectedly with QTMovie
  • Next by thread: Re: Program exits unexpectedly with QTMovie
  • Index(es):
    • Date
    • Thread