}
#endif
- vlc_global()->psz_vlcpath = strdup( psz_path );
+ psz_vlcpath = strdup( psz_path );
/* Set the default file-translation mode */
#if !defined( UNDER_CE )
{
int argc;
int enqueue;
- char data[0];
+ char data[];
} vlc_ipc_data_t;
void system_Configure( libvlc_int_t *p_this, int *pi_argc, const char *ppsz_argv[] )
if( !p_this ) return 0;
/* Add files to the playlist */
- p_playlist = pl_Yield( p_this );
+ p_playlist = pl_Hold( p_this );
if( !p_playlist ) return 0;
if( pwm_data->lpData )
NULL, PLAYLIST_APPEND |
( ( i_opt || p_data->enqueue ) ? 0 : PLAYLIST_GO ),
PLAYLIST_END, -1,
+ i_options,
(char const **)( i_options ? &ppsz_argv[i_opt+1] : NULL ),
- i_options, true, pl_Unlocked );
+ VLC_INPUT_OPTION_TRUSTED,
+ true, pl_Unlocked );
i_opt += i_options;
}
*****************************************************************************/
void system_End( libvlc_int_t *p_this )
{
- if( p_this && vlc_global() )
+ HWND ipcwindow;
+ if( p_this )
{
- free( vlc_global()->psz_vlcpath );
- vlc_global()->psz_vlcpath = NULL;
+ free( psz_vlcpath );
+ psz_vlcpath = NULL;
}
+
+ if( ( ipcwindow = FindWindow( 0, L"VLC ipc "VERSION ) ) != 0 )
+ {
+ SendMessage( ipcwindow, WM_QUIT, 0, 0 );
+ }
+
if (p_helper && p_helper->p_parent == VLC_OBJECT(p_this) )
{
/* FIXME: thread-safety... */
- SendMessage( NULL, WM_QUIT, 0, 0 );
- vlc_thread_join (p_helper);
vlc_object_detach (p_helper);
vlc_object_release (p_helper);
p_helper = NULL;