Re: Program exits unexpectedly with QTMovie
Re: Program exits unexpectedly with QTMovie
- Subject: Re: Program exits unexpectedly with QTMovie
- From: Tim Monroe <email@hidden>
- Date: Thu, 16 Jun 2005 11:23:04 -0700
On Jun 14, 2005, at 8:07 PM, email@hidden 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]);
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?
Just out of curiosity, does the crash perchance only occur when you are
running under the debugger? If you build the tool and run it on the
command line, does the crash still occur?
Tim Monroe
QuickTime Engineering
email@hidden
_______________________________________________
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