Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Movie creation problem




On 31-mrt-07, at 7:26, Roozbeh Zabihollahi wrote:

I just wrote my code like what you wrote, but it
thrown an error and I changed it according QA items of
Quicktime site. I hav written the error code here for
you.

When I used nil as later parameters of NewTrackMedia,
it fails and it returns -2050 (MacErrors.h:
badDataRefIndex).

If NewTrackMedia fails the rest cannot possibly work.

I can see the follow ing errors in the code:

1. I am not sure if .test.mov is a good file name. On MAcOS files whose name starts with a dot are invisible. Also you need a Pascal string (which starts with a length byte) not a C string.

2.

err = InsertMediaIntoTrack (theTrack, 0, /* track start time */
GetMediaDuration (theMedia), /* media start time */
GetMediaDuration (theMedia),
kFix1);

should be

err = InsertMediaIntoTrack (theTrack, 0, /* track start time */
0, /* media start time */
GetMediaDuration (theMedia),
kFix1);


Jan E.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-API mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quicktime-api/email@hidden

This email sent to email@hidden

References: 
 >Re: Movie creation problem (From: Roozbeh Zabihollahi <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.