[vlc-devel] What's the best to communicate between an app and a video output plugin?

Julien Pauty julien.pauty at gmail.com
Thu Jan 15 11:22:33 CET 2009


Dear list,

I wrote a video output plugin for the clutter toolkit, so that we can use
vlc to display videos in a texture. This will be particularly useful to
integrate vlc into media center applications.

I need to pass a texture reference to the video plugin so that the plugin
knows where to write video data. To do that, I use the string parameters to
pass options to the module, when building an instance of libvlc, like what
is done in the vmem module. My problem is that these option are shared
between several video output threads. Suppose I want to display two videos
in my application. I have to create two instances of libvlc and to pass each
time a reference to a different texture. The problem is that the reference
of the second texture will overwrite the first ref in the option repository.
I can circumvept this, by using some communication data structure shared
between the video output module and the main application, but this seems
quite dirty.

I also tried to use the config_PutPsz function to pass options to the video
output module, but this function seems to be available only from modules and
not from external applications.

So my overall question if the following. If I create an application that
uses libvlc to display video, what is the best way to communicate with the
video output module? Is there something else than the option strings used
when creating an instance of libvlc?

Thanks for your help,

Julien
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20090115/5ad05823/attachment.html>


More information about the vlc-devel mailing list