control/oldrc: remove abort() usage

And add a goto error since a new check will be needed with the future
player/playlist.
This commit is contained in:
Thomas Guillem 2018-09-28 16:45:04 +02:00
parent 65407e7030
commit 130d97d7cc
1 changed files with 8 additions and 1 deletions

View File

@ -364,13 +364,20 @@ static int Activate( vlc_object_t *p_this )
#endif
if( vlc_clone( &p_sys->thread, Run, p_intf, VLC_THREAD_PRIORITY_LOW ) )
abort();
goto error;
msg_rc( "%s", _("Remote control interface initialized. Type `help' for help.") );
/* Listen to audio volume updates */
var_AddCallback( p_sys->p_playlist, "volume", VolumeChanged, p_intf );
return VLC_SUCCESS;
error:
net_ListenClose( pi_socket );
free( psz_unix_path );
vlc_mutex_destroy( &p_sys->status_lock );
free( p_sys );
return VLC_EGENERIC;
}
/*****************************************************************************