Quicktime and NSThread
Quicktime and NSThread
- Subject: Quicktime and NSThread
- From: Iikka Virkkunen <email@hidden>
- Date: Wed, 21 May 2003 23:10:19 +0300
I'm have a program, which generates Quicktime movie from many NSImages.
The code relies heavily on the recent sample code "CocoaCreateMovie".
Sometimes the number of frames can be big, and Quicktime generation
takes a while. Hence I tried to do the movie in separate NSThread, but
run into strange problem: the quicktime appears to be generated OK, but
when I try to play it in an associated NSMovieView, the playback stops
after every frame. If I save the movie and open it in QuickTime Player,
it works OK. Also, if I do the generation in the main thread, it works
OK.
I tried detaching the new thread with both
[NSThread detachNewThreadSelector: toTarget: withObject:];
and
[NSApplication detachDrawingThread: toTarget: withObject:];
but the results were similar.
I'm sure I'm missing something obvieous, please point me to it.
Iikka Virkkunen
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.