]> git.sesse.net Git - vlc/commitdiff
* ./modules/video_output/sdl.c: avoid crashes at exit due to SDL being
authorSam Hocevar <sam@videolan.org>
Sun, 4 May 2003 12:40:58 +0000 (12:40 +0000)
committerSam Hocevar <sam@videolan.org>
Sun, 4 May 2003 12:40:58 +0000 (12:40 +0000)
    linked with svgalib and svgalib using atexit().

modules/video_output/sdl.c

index 3d90f1e9ed31a4003b714d470f850dcd454ca1a5..2c76d5cde95fa825a89d02837b591fee29c14505 100644 (file)
@@ -2,7 +2,7 @@
  * sdl.c: SDL video output display method
  *****************************************************************************
  * Copyright (C) 1998-2001 VideoLAN
- * $Id: sdl.c,v 1.11 2003/03/30 18:14:38 gbazin Exp $
+ * $Id: sdl.c,v 1.12 2003/05/04 12:40:58 sam Exp $
  *
  * Authors: Samuel Hocevar <sam@zoy.org>
  *          Pierre Baillet <oct@zoy.org>
@@ -109,6 +109,10 @@ vlc_module_begin();
     set_callbacks( Open, Close );
     /* XXX: check for conflicts with the SDL audio output */
     var_Create( p_module->p_libvlc, "sdl", VLC_VAR_MUTEX );
+#if defined( __i386__ )
+    /* On i386, SDL is linked against svgalib */
+    linked_with_a_crap_library_which_uses_atexit();
+#endif
 vlc_module_end();
 
 /*****************************************************************************