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

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

  • Follow-Ups:
    • Re: Program exits unexpectedly with QTMovie
      • From: Tim Lucas <email@hidden>
  • Prev by Date: Re: xcode-->java-->cocoa - how long? how many?
  • Next by Date: Re: xcode-->java-->cocoa - how long? how many?
  • Previous by thread: Re: FYI: User feedback for LSMinimumSystemVersion [solved]
  • Next by thread: Re: Program exits unexpectedly with QTMovie
  • Index(es):
    • Date
    • Thread