[vlc-devel] qtkit mac development and threads

Feurstein, Michael Michael.Feurstein at wu.ac.at
Mon May 7 13:24:32 CEST 2012


hello…

i have a question concerning mac dev and threads.

background info: with qtcapture or qtsound the Open method hangs (simply doesn't continue) when using -I dummy. as far as my research goes this is due to the fact that QTCaptureSession calls back to the main thread when calling addInput.

when googling this, quicktime engineering replies that QTCaptureSession only posts notifications to the main run loop. [1]
a solution from another list [2] suggests to run a run loop on the main thread otherwise the QTCaptureSession waits forever for the addInput call to complete.

i'm a bit lost and want to fix this in order to work with -I dummy, so i'd be grateful for some starting points. how does -I dummy work? (what a question…) or could this be lost ground as Pierre notes in a commit that one should not expect this to run with -I dummy [3].
i'm on irc, maybe someone can point me in the right direction, source code examples, other solutions, anything…

thx
- Michael Feurstein

[1] http://osdir.com/ml/quicktime-api/2009-09/msg00021.html
[2] http://lists.apple.com/archives/quicktime-api/2009/Apr/msg00101.html
[3] http://git.videolan.org/?p=vlc.git;a=commit;h=9dcd81a1dc9e0cfa685c61f67f43fa85cb7f9d5b
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20120507/0b8b3c03/attachment.html>


More information about the vlc-devel mailing list