<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2652.35">
<TITLE>RE: [vlc-devel] Re: problems with many libvlc instances</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2>The problem is when I create instances of libvlc (libvlcnew).</FONT>
<BR><FONT SIZE=2>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.</FONT></P>
<P><FONT SIZE=2>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?</FONT></P>
<P><FONT SIZE=2>Thank you very much for your help</FONT>
<BR><FONT SIZE=2>Daniel</FONT>
</P>
<BR>
<BR>
<BR>
<P><FONT SIZE=2>-----Mensaje original-----</FONT>
<BR><FONT SIZE=2>De: Filippo Carone [<A HREF="mailto:filippo@carone.org">mailto:filippo@carone.org</A>] </FONT>
<BR><FONT SIZE=2>Enviado el: martes, 27 de junio de 2006 12:35</FONT>
<BR><FONT SIZE=2>Para: vlc-devel@videolan.org</FONT>
<BR><FONT SIZE=2>Asunto: [vlc-devel] Re: problems with many libvlc instances</FONT>
</P>
<P><FONT SIZE=2>Donoso Gabilondo, Daniel ha scritto:</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> Thanks for your help.</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> I saw in the libvlc.h file is not any method to change the video-x, </FONT>
<BR><FONT SIZE=2>> video-y, width an height values, only can set the values in the instance </FONT>
<BR><FONT SIZE=2>> initialization (libvlc_new function). How can I change them with my </FONT>
<BR><FONT SIZE=2>> application? Must I modify the libvlc library to make the methods?</FONT>
<BR><FONT SIZE=2>> </FONT>
</P>
<P><FONT SIZE=2>No. First of all you should use functions in src/control/*.c files (so </FONT>
<BR><FONT SIZE=2>functions listed in include/vlc/libvlc.h).</FONT>
</P>
<P><FONT SIZE=2>In src/control/core.c there's the function:</FONT>
</P>
<P><FONT SIZE=2>libvlc_instance_t * libvlc_new( int argc, char **argv,</FONT>
<BR><FONT SIZE=2> libvlc_exception_t *p_exception )</FONT>
</P>
<P><FONT SIZE=2>**argv contains the options vlc usually takes on the command line. That </FONT>
<BR><FONT SIZE=2>is the place where to specify video-x and video-y (handle argv as libc </FONT>
<BR><FONT SIZE=2>does).</FONT>
</P>
<P><FONT SIZE=2>Cheers,</FONT>
<BR><FONT SIZE=2>fc</FONT>
</P>
<P><FONT SIZE=2>-- </FONT>
<BR><FONT SIZE=2>This is the vlc-devel mailing-list, see <A HREF="http://www.videolan.org/vlc/" TARGET="_blank">http://www.videolan.org/vlc/</A></FONT>
<BR><FONT SIZE=2>To unsubscribe, please read <A HREF="http://developers.videolan.org/lists.html" TARGET="_blank">http://developers.videolan.org/lists.html</A></FONT>
</P>
</BODY>
</HTML>