[vlc-devel] How to embed VLC in my C application

Herman Schultz herman.schultz at gmail.com
Tue Jun 12 16:03:52 CEST 2007


Hi,

I am trying to embed&invoke VLC in my c application.

I invoke VLC like this:
// i_argc is an int
// ppsz_argv2  is char* ppsz_argv2[]

int  i_ret = VLC_Create();
i_ret = VLC_Init( 0, i_argc, ppsz_argv2 );
i_ret = VLC_AddIntf( 0, NULL, VLC_TRUE, VLC_TRUE );

It works the first time when I do this.
But when I do that the same i_argc, ppsz_arg2[] the second time, I get an
segmentation inside VLC_Init().

Can you please tell me why is there? Or if that is the right way to
embed/invoke VLC in my own application.

Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20070612/0e7b859f/attachment.html>


More information about the vlc-devel mailing list