Commit 3d11b0e1 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

oldrc: avoid vlc_object_kill()

parent 15a725ad
...@@ -455,24 +455,24 @@ static void Run( intf_thread_t *p_intf ) ...@@ -455,24 +455,24 @@ static void Run( intf_thread_t *p_intf )
p_buffer[0] = 0; p_buffer[0] = 0;
/* Register commands that will be cleaned up upon object destruction */
p_intf->p_sys->p_playlist = p_playlist;
RegisterCallbacks( p_intf );
/* status callbacks */
/* Listen to audio volume updates */
var_AddCallback( p_playlist, "volume", VolumeChanged, p_intf );
#ifdef WIN32 #ifdef WIN32
/* Get the file descriptor of the console input */ /* Get the file descriptor of the console input */
p_intf->p_sys->hConsoleIn = GetStdHandle(STD_INPUT_HANDLE); p_intf->p_sys->hConsoleIn = GetStdHandle(STD_INPUT_HANDLE);
if( p_intf->p_sys->hConsoleIn == INVALID_HANDLE_VALUE ) if( p_intf->p_sys->hConsoleIn == INVALID_HANDLE_VALUE )
{ {
msg_Err( p_intf, "couldn't find user input handle" ); msg_Err( p_intf, "couldn't find user input handle" );
vlc_object_kill( p_intf ); return;
} }
#endif #endif
/* Register commands that will be cleaned up upon object destruction */
p_intf->p_sys->p_playlist = p_playlist;
RegisterCallbacks( p_intf );
/* status callbacks */
/* Listen to audio volume updates */
var_AddCallback( p_playlist, "volume", VolumeChanged, p_intf );
while( vlc_object_alive( p_intf ) ) while( vlc_object_alive( p_intf ) )
{ {
char *psz_cmd, *psz_arg; char *psz_cmd, *psz_arg;
......
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