[vlc-devel] Re: problems with many libvlc instances

Donoso Gabilondo, Daniel donoso.d at ikusi.es
Wed Jun 28 11:45:43 CEST 2006


The problem is when I create instances of libvlc (libvlcnew).
I set in argv different argument values (video-x, video-y, width an height)
for each instance, because I want play some videos but with different
positions, but all of them appears with the last video position width and
height. Remi said me: libvlc is NOT currently reentrant-safe anyway; in
particular, src/libvlc.c has a static pointer to "THE" libvlc instance.

I saw that remi said me is true, and to resolve this problem I would like to
know is if it possible to change with my application the video position
(video-x, video-y), width and height when the instance is created, for
example when it is playing. If it is possible, how can I do it?

Thank you very much for your help
Daniel




-----Mensaje original-----
De: Filippo Carone [mailto:filippo at carone.org] 
Enviado el: martes, 27 de junio de 2006 12:35
Para: vlc-devel at videolan.org
Asunto: [vlc-devel] Re: problems with many libvlc instances

Donoso Gabilondo, Daniel ha scritto:
> 
> Thanks for your help.
> 
> I saw in the libvlc.h file is not any method to change the video-x, 
> video-y, width an height values, only can set the values in the instance 
> initialization (libvlc_new function). How can I change them with my 
> application? Must I modify the libvlc library to make the methods?
> 

No. First of all you should use functions in src/control/*.c files (so 
functions listed in include/vlc/libvlc.h).

In src/control/core.c there's the function:

libvlc_instance_t * libvlc_new( int argc, char **argv,
                                 libvlc_exception_t *p_exception )

**argv contains the options vlc usually takes on the command line. That 
is the place where to specify video-x and video-y (handle argv as libc 
does).

Cheers,
fc

-- 
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20060628/526f890e/attachment.html>


More information about the vlc-devel mailing list