[vlc-devel] qtkit mac development and threads

Rémi Denis-Courmont remi at remlab.net
Tue May 8 17:33:36 CEST 2012

Le mardi 8 mai 2012 18:09:49 Feurstein, Michael, vous avez écrit :
> so. yeah. my question: how do i grab hold of the main thread

The main thread is an abstract concept. I don't understand the grabbing 
metaphore here. What do you actually want to get?

> and have an NSRunLoop run on it?

It is up to the LibVLC application programmer what the main thread does. It is 
not up to you as the LibVLC plugin developer to decide. LibVLC and its plugins 
cannot make any assumptions in that respect.

(In particular, the VLC media player runs a sigwait() loop. But that is 
irrelevant; as there are other applications doing other stuff.)

> or put differently why doesn't it start
> transcoding/streaming automatically as with an rtsp input?

As the commit log implies, the plugin assumes that the main thread runs the 
Cocoa main loop. When that is not the case, then the plugin gets stuck.

Rémi Denis-Courmont

More information about the vlc-devel mailing list