* vlcplugin.c: a VideoLAN Client plugin for Mozilla
*****************************************************************************
* Copyright (C) 2002 VideoLAN
- * $Id: vlcplugin.c,v 1.2 2002/07/12 17:08:52 sam Exp $
+ * $Id: vlcplugin.c,v 1.3 2002/07/20 18:01:42 sam Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
//"--plugin-path", "/home/sam/videolan/vlc_MAIN/plugins",
"--vout", "xvideo,x11,dummy",
"--intf", "dummy",
- //"--noaudio",
+ "--noaudio",
//"-v"
};
This->window = 0;
}
- This->p_vlc = vlc_create();
+ This->p_vlc = vlc_create_r();
if( This->p_vlc == NULL )
{
return NPERR_GENERIC_ERROR;
}
- i_ret = vlc_init( This->p_vlc, sizeof(ppsz_foo)/sizeof(char*), ppsz_foo );
+ i_ret = vlc_init_r( This->p_vlc, sizeof(ppsz_foo)/sizeof(char*), ppsz_foo );
if( i_ret )
{
- vlc_destroy( This->p_vlc );
+ vlc_destroy_r( This->p_vlc );
This->p_vlc = NULL;
return NPERR_GENERIC_ERROR;
}
- i_ret = vlc_run( This->p_vlc );
+ i_ret = vlc_run_r( This->p_vlc );
if( i_ret )
{
- vlc_end( This->p_vlc );
- vlc_destroy( This->p_vlc );
+ vlc_end_r( This->p_vlc );
+ vlc_destroy_r( This->p_vlc );
This->p_vlc = NULL;
return NPERR_GENERIC_ERROR;
}
if( This->p_vlc != NULL )
{
- vlc_stop( This->p_vlc );
- vlc_end( This->p_vlc );
- vlc_destroy( This->p_vlc );
+ vlc_stop_r( This->p_vlc );
+ vlc_end_r( This->p_vlc );
+ vlc_destroy_r( This->p_vlc );
This->p_vlc = NULL;
}
This->b_stream = 1;
if( This->psz_target )
{
- vlc_add_target( This->p_vlc, This->psz_target, PLAYLIST_APPEND, PLAYLIST_END );
+ vlc_add_target_r( This->p_vlc, This->psz_target, PLAYLIST_APPEND, PLAYLIST_END );
/* We loop, dude */
- vlc_add_target( This->p_vlc, "vlc:loop", PLAYLIST_APPEND, PLAYLIST_END );
+ vlc_add_target_r( This->p_vlc, "vlc:loop", PLAYLIST_APPEND, PLAYLIST_END );
}
}
#endif
if (instance != NULL)
{
This = (PluginInstance*) instance->pdata;
- vlc_add_target( This->p_vlc, fname, PLAYLIST_APPEND, PLAYLIST_END );
+ vlc_add_target_r( This->p_vlc, fname, PLAYLIST_APPEND, PLAYLIST_END );
/* We loop, dude */
- vlc_add_target( This->p_vlc, "vlc:loop", PLAYLIST_APPEND, PLAYLIST_END );
+ vlc_add_target_r( This->p_vlc, "vlc:loop", PLAYLIST_APPEND, PLAYLIST_END );
}
}