X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fcontrol%2Fcore.c;h=341f4ef2e5ca35c0c67c9d587080ad170fd44b56;hb=cec206c39a1e2ff00d9e051a5649a3e3503d3cc8;hp=986c37704a8cc4f136476ad502736ef99bee7e9d;hpb=d91fcec7a9d8ede9ebbaa1279e17599e7ab33fd2;p=vlc diff --git a/src/control/core.c b/src/control/core.c index 986c37704a..341f4ef2e5 100644 --- a/src/control/core.c +++ b/src/control/core.c @@ -167,16 +167,9 @@ void libvlc_release( libvlc_instance_t *p_instance ) } } -int libvlc_add_intf( libvlc_instance_t *p_i, const char *name, - libvlc_exception_t *p_e ) +int libvlc_add_intf( libvlc_instance_t *p_i, const char *name ) { - if( libvlc_InternalAddIntf( p_i->p_libvlc_int, name ) ) - { - libvlc_printerr("Interface initialization failed"); - libvlc_exception_raise( p_e ); - return -1; - } - return 0; + return libvlc_InternalAddIntf( p_i->p_libvlc_int, name ) ? -1 : 0; } void libvlc_wait( libvlc_instance_t *p_i )