]> git.sesse.net Git - vlc/blobdiff - bin/vlc.c
Do not use crashdumps on Win64
[vlc] / bin / vlc.c
index 5ca5a16c8fa23848ef01171a3bfdacccab702ab3..94465e65425bb4f26b25238a94b7113d340f2c4e 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);
@@ -165,7 +166,7 @@ int main( int i_argc, const char *ppsz_argv[] )
     }
     i_ret = libvlc_exception_raised (&ex);
     if( i_ret )
-        fprintf( stderr, "%s\n", libvlc_exception_get_message( &ex));
+        fprintf( stderr, "%s\n", libvlc_errmsg() );
 
     libvlc_exception_clear (&ex);
     libvlc_exception_clear (&dummy);