| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
|
I have a question as to why DetachMovieFromCurrent call would fail
with -2098 from the main thread? I was trying to move a movie to
secondary thread for some processing but it appears to not like it.
It would fail if the Movie contains Media that requires the use of a non thread-safe component.
See Thread-safe programming in QuickTime
Are there format limitations to moving a movie onto another thread?
Yes. Download the Fiendishthngs sample and sort on the Thread-Safe column. Any Media requiring any of the components listed with a NO will produce the error.
None of the sample code i have seen does this either. This is with
Quicktime 7.2 and OS 10.5. For now i will move all to main thread and
use performSelectorOnMainThread to schedule processing on the main
thread.
The strategy of moving operations to the main thread if the Movie cannot be process on a background thread has been discussed in the above TN and shown in the ThreadsXXX series of samples -- ThreadsExporter, ThreadsExportMovie and so on from back in 2005 I believe. QTKit requires a slightly different approach also discussed in the above TN.
regards,
edward
Edward Agabeg :: QuickTime & Audio
Developer Technical Support Engineer
Apple Inc.
|
_______________________________________________ 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
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.