From: RĂ©mi Denis-Courmont Date: Sat, 23 Jan 2010 17:04:53 +0000 (+0200) Subject: VLC: exit if the requested interface could not be started X-Git-Tag: 1.1.0-ff~1014 X-Git-Url: https://git.sesse.net/?p=vlc;a=commitdiff_plain;h=a8421c5730af2951f205d018de90f4a234bda4c9 VLC: exit if the requested interface could not be started --- diff --git a/bin/vlc.c b/bin/vlc.c index 2633f84cbb..de2b87851d 100644 --- a/bin/vlc.c +++ b/bin/vlc.c @@ -164,9 +164,11 @@ int main( int i_argc, const char *ppsz_argv[] ) #if !defined (HAVE_MAEMO) libvlc_add_intf (vlc, "globalhotkeys,none"); #endif - libvlc_add_intf (vlc, NULL); - libvlc_playlist_play (vlc, -1, 0, NULL, &dummy); - libvlc_wait (vlc); + if (libvlc_add_intf (vlc, NULL) == 0) + { + libvlc_playlist_play (vlc, -1, 0, NULL, &dummy); + libvlc_wait (vlc); + } libvlc_release (vlc); }