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: QTMovie frameImageAtTime in NSThread Problem



Okay, apologies if this has been answered already, I've been off the list a few days.

So I can create a QTMovie on the main thread and then call DetachMovieFromCurrentThread( [myMovie quicktimeMovie] ) on it. I can then send that QTMovie instance as the object in a detachNewThreadSelector:toTarget:withObject: and from within that thread, call AttachMovieToCurrentThread( [moveInThread quicktimeMovie] to make sure my quicktime dealings are thread safe?

-Phil

http://phildow.net

Am 08.08.2005 um 21:57 schrieb Tim Monroe:


On Aug 8, 2005, at 12:08 PM, David Garcea wrote:


I'm trying to load information from a number of video files in an
NSThread, using the following code.


[SNIP]


QTMovie *theMovie = [QTMovie movieWithURL:theFileURL error:&theError];


In general, you need to create *all* QTMovie objects on the main thread. You should then be able to migrate them to a background thread (using the APIs DetachMovieFromCurrentThread and AttachMovieToCurrentThread) and operate on them there. There is a Tech Note on QuickTime thread safety you should take a look at.


However, we have recently uncovered some issues when working with QTMovie objects on a background thread, even when doing things the "right way". We are hoping to provide a more thread-safe QTKit soon.


Tim Monroe QuickTime Engineering email@hidden

_______________________________________________
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/phil% 40phildow.net


This email sent to email@hidden



_______________________________________________ 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: QTMovie frameImageAtTime in NSThread Problem (From: Tim Monroe <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.