NPError VlcPlugin::init(int argc, char* const argn[], char* const argv[])
{
/* prepare VLC command line */
- char *ppsz_argv[32] = { "vlc" };
- int ppsz_argc = 1;
+ char *ppsz_argv[32];
+ int ppsz_argc = 0;
/* locate VLC module path */
#ifdef XP_MACOSX
{
if( i_type == REG_SZ )
{
- strcat( p_data, "\\plugins000" );
+ strcat( p_data, "\\plugins" );
ppsz_argv[ppsz_argc++] = "--plugin-path";
ppsz_argv[ppsz_argc++] = p_data;
}
}
ppsz_argv[ppsz_argc++] = "--no-one-instance";
-#if 1
- ppsz_argv[0] = "C:\\Cygwin\\home\\damienf\\vlc-trunk\\vlc";
-#endif
-
#endif /* XP_MACOSX */
/* common settings */
if( libvlc_log )
libvlc_log_close(libvlc_log, NULL);
if( libvlc_instance )
- libvlc_destroy(libvlc_instance, NULL );
+ libvlc_release(libvlc_instance, NULL );
}
/*****************************************************************************