Thanks Achim,

I don't think I can use performSelectorOnMainThread since I am initializing
movie inside a QCPlugin which is rendered by QCRenderer on a secondary
thread from another application.

So I decided to use NewMovieFromProperties method to initialize my movie and
it actually worked, but after rendering few seconds the
ImageAvailableCallback stops calling, although I can hear audio which means
Movie toolbox is playing the movie. I have tested it on different movies and
on main thread as well but doesn't seem to work properly.

Thanks
Nisar

On Mon, Oct 24, 2011 at 6:25 PM, Achim Breidenbach <[email protected]> wrote:

> Hello Nisar,
>
> I am not sure why QTMovie whats to be initialized on the main thread, but
> did you try to put your init code in a certain method and call it with
> "performSelectorOnMainThread"?
>
> Btw: If you create a movie on the main thread, you should use
> "detachFromCurrentThread" and "attachToCurrentThread" to "move" the movie
> from the main thread to the secondary thread.
>
> Achim Breidenbach
> Boinx Software
>
> On 24.10.2011, at 12:45, Nisar Ahmed wrote:
>
> Dear List,
>
> I have developed a plugin that handles interlaced movies properly. The
> plugin works great with QCRenderer main thread but throws exception on
> secondary thread
>
> *Terminating app due to uncaught exception
> 'QTMovieInitializedOnWrongThread', reason: 'QTMovie_QuickTime class must be
> initialized on the main thread.'*
>
> I have also tried calling [QTMovie enterQTKITOnThread]/[QTMovie
> exitQTKitOnThread] and EnterMoviesOnThread(0)/ExitMoviesOnThread() pair but
> didn't help.
>
> I have build both the plugin and application in 32bit mode.
>
> Please help
>
> Thanks
> Nisar
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Quartzcomposer-dev mailing list      ([email protected])
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/quartzcomposer-dev/achim%40boinx.com
>
> This email sent to [email protected]
>
>
>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to