• 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
NewMovieFromDataRef crashes when QT movie URL is not found
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NewMovieFromDataRef crashes when QT movie URL is not found


  • Subject: NewMovieFromDataRef crashes when QT movie URL is not found
  • From: varaha murthy <email@hidden>
  • Date: Tue, 27 Apr 2010 17:42:32 +0530

Hi,

I am trying to open a movie using the NewMovieFromDataRef api. But if the
movie URL is not found, I get a crash.
This is happening on OSX10.6.3. QT version 7.6.3. Following is the test app
that I tried. Is there any way/ api  to get around this crash ?.

#include <stdio.h>

#include <QuickTime/QuickTime.h>
#include <QuickTime/Movies.h>

int main (int argc, const char * argv[]) {
    Movie  m = NULL;
    Handle h = NULL;
    short id = 0;
    OSType outType;
    short flags = newMovieActive;

    EnterMovies();

    OSErr err = QTNewDataReferenceFromURLCFString(CFSTR("
http://10.192.18.142/test.mov";),0,&h,&outType);
    NewMovieFromDataRef(&m,flags,&id,h,outType) ;

    ExitMovies();
    return 0;
}
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: NewMovieFromDataRef crashes when QT movie URL is not found
      • From: Fritz Anderson <email@hidden>
  • Prev by Date: Re: why doesn't the compiler complain?
  • Next by Date: Re: NSApplicationMain question
  • Previous by thread: Re: Make About window respond to ⌘W in UI-less application
  • Next by thread: Re: NewMovieFromDataRef crashes when QT movie URL is not found
  • Index(es):
    • Date
    • Thread