Program exits unexpectedly with QTMovie
Program exits unexpectedly with QTMovie
- Subject: Program exits unexpectedly with QTMovie
- From: Michael Jurewitz <email@hidden>
- Date: Tue, 14 Jun 2005 00:36:33 -0500
- Resent-date: Tue, 14 Jun 2005 21:34:26 -0500
- Resent-from: Michael Jurewitz <email@hidden>
- Resent-message-id: <email@hidden>
- Resent-to: email@hidden
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?
-Michael Jurewitz
********************************************* Northwestern University
2341 Sheridan Road Evanston, IL 60201
Room: 847-332-9515 Cell: 909-717-5474 *********************************************
|
_______________________________________________
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