Avoid late extra error message if globalhoykeys fail (fixes: #3034)
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 8 Aug 2009 09:30:10 +0000 (12:30 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 8 Aug 2009 09:30:10 +0000 (12:30 +0300)
bin/vlc.c

index 5ca5a16..610da47 100644 (file)
--- a/bin/vlc.c
+++ b/bin/vlc.c
@@ -158,6 +158,7 @@ int main( int i_argc, const char *ppsz_argv[] )
             pthread_sigmask (SIG_UNBLOCK, &set, NULL);
         }
         libvlc_add_intf (vlc, "globalhotkeys,none", &ex);
+        libvlc_exception_clear (&ex);
         libvlc_add_intf (vlc, NULL, &ex);
         libvlc_playlist_play (vlc, -1, 0, NULL, &dummy);
         libvlc_wait (vlc);