// Find all of the videos that have not finished loading.
for( counter = 0; counter < [[videoController arrangedObjects]
count]; counter++ )
{
theVideo = [[videoController arrangedObjects]
objectAtIndex:counter];
// If this video has not been loaded, then load it.
if( theVideo && [[theVideo valueForKey:@"loaded"] boolValue]
== false)
{
// Get the path of this video's file.
theFileURL = [NSURL URLWithString:[theVideo
valueForKey:@"path"]];
if( theFileURL )
{
QTMovie *theMovie = [QTMovie movieWithURL:theFileURL
error:&theError];
I know this code works when run from the main thread, but when it's
run from a new thread, it gets stuck waiting for a semaphore at the
line:
NSImage *theThumbnail = [theMovie frameImageAtTime:middle ];
Can this be called from outside the main thread? If not, is there a
work around?
I've been looking through the sample code that demonstrates using
multiple threads in QuickTime, and none of the examples use NSThread.
Instead they use posix threads. Is this the problem with my code? Do
I need to switch to posix threads?
Any assistance is appreciated.
Regards,
David
_______________________________________________
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