Re: Program exits unexpectedly with QTMovie
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