Commit 3defc7d6 authored by Rafaël Carré's avatar Rafaël Carré

activex: simplify options set

parent 06c85506
......@@ -461,19 +461,14 @@ HRESULT VLCPlugin::onLoad(void)
void VLCPlugin::initVLC()
{
/*
** default initialization options
*/
const char *ppsz_argv[32] = { };
int ppsz_argc = 0;
/* common settings */
ppsz_argv[ppsz_argc++] = "-vv";
ppsz_argv[ppsz_argc++] = "--no-stats";
ppsz_argv[ppsz_argc++] = "--intf=dummy";
ppsz_argv[ppsz_argc++] = "--no-video-title-show";
_p_libvlc = libvlc_new(ppsz_argc, ppsz_argv);
static const char * const ppsz_argv[] = {
"-vv",
"--no-stats",
"--intf=dummy",
"--no-video-title-show",
};
_p_libvlc = libvlc_new(sizeof(ppsz_argv) / sizeof(*ppsz_argv), ppsz_argv);
if( !_p_libvlc )
return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment