[vlc-devel] How to share a variable between qt4 ui (c++) and playlist thread (c)

fayyaz lodhi fayyazkl at gmail.com
Wed Jan 9 10:28:28 CET 2013


I am using vlc as a sub component in an application and have a UI screen in
the qt4 dialogs which needs to pass a c string to the playlist thread.

If i try placing it in some common header file, i get compilation errors of
multiple inclusions.

If i create the c string in the playlist thread file, and use an extern to
access it in qt gui, i get to compile successfully. But it fails to load UI
by saying "no suitable dialog found to load" (just removing this shared
field or making it static i.e. local to file / class runs the UI fine.

What is the correct way of sharing data between the two?

Thanks,
Fayyaz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20130109/0a502ea3/attachment.html>


More information about the vlc-devel mailing list