]> git.sesse.net Git - vlc/blobdiff - bin/vlc.c
VLC: infrastructure to detect and/or work-around thread-unsafe calls
[vlc] / bin / vlc.c
index e486040ff5af9dab18d210a8849a297490c5f741..9e769b018cb80fc42eeac674d146dcbc78271658 100644 (file)
--- a/bin/vlc.c
+++ b/bin/vlc.c
@@ -42,6 +42,7 @@
 /* Explicit HACK */
 extern void LocaleFree (const char *);
 extern char *FromLocale (const char *);
+extern void vlc_enable_override (void);
 
 #include <signal.h>
 #include <time.h>
@@ -157,6 +158,8 @@ int main( int i_argc, const char *ppsz_argv[] )
             return 1; // BOOM!
     argv[argc] = NULL;
 
+    vlc_enable_override ();
+
     /* Initialize libvlc */
     libvlc_instance_t *vlc = libvlc_new (argc, argv);