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: Attaching movie to a thread




On Jun 26, 2008, at 6:35 AM, Jan E. Schotsman wrote:

Hello,

Suppose I have a movie and reference to one of its tracks.
If I move the movie to another thread, does the track reference remain valid?


Jan E.


Yes. The migration operations take the Movie and its constituent parts (Tracks, Media, DataHandlers, etc.) and (1) first ensures everything can be moved off the current thread, (2) detaches when everyone votes yes (It's a 2-phase commit kind of thing), and (3) attaches everything to the main thread. DetachMovieFromCurrentThread() does (1) and (2). AttachMovieToCurrentThread() does (3).


With that said, of course, you shouldn't reference the Track from any thread other than the one to which it is attached.

-- Chris

_______________________________________________
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: 
 >Attaching movie to a thread (From: "Jan E. Schotsman" <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.