]> git.sesse.net Git - vlc/blobdiff - modules/video_output/svgalib.c
Replaced DIRAC_EOS by BLOCK_FLAG_END_OF_SEQUENCE.
[vlc] / modules / video_output / svgalib.c
index efd62e534f2f21f840567d9a2750e354c1128203..ae99b3452922115ed140c74a8ddae8aea6412f4e 100644 (file)
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
-#include <stdlib.h>
 
-#include <vlc/vlc.h>
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
+#include <vlc_common.h>
+#include <vlc_plugin.h>
 #include <vlc_vout.h>
+#include <vlc_interface.h>
 
 #include <vga.h>
 #include <vgagl.h>
@@ -49,15 +54,15 @@ static void SetPalette( vout_thread_t *, uint16_t *, uint16_t *, uint16_t * );
 /*****************************************************************************
  * Module descriptor
  *****************************************************************************/
-vlc_module_begin();
-    set_shortname( "SVGAlib" );
-    set_category( CAT_VIDEO );
-    set_subcategory( SUBCAT_VIDEO_VOUT );
-    set_description( _("SVGAlib video output") );
-    set_capability( "video output", 0 );
-    set_callbacks( Create, Destroy );
-    linked_with_a_crap_library_which_uses_atexit();
-vlc_module_end();
+vlc_module_begin ()
+    set_shortname( "SVGAlib" )
+    set_category( CAT_VIDEO )
+    set_subcategory( SUBCAT_VIDEO_VOUT )
+    set_description( N_("SVGAlib video output") )
+    set_capability( "video output", 0 )
+    set_callbacks( Create, Destroy )
+    linked_with_a_crap_library_which_uses_atexit ()
+vlc_module_end ()
 
 /*****************************************************************************
  * vout_sys_t: video output descriptor
@@ -231,7 +236,7 @@ static int Manage( vout_thread_t *p_vout )
     if( keyboard_keypressed(SCANCODE_ESCAPE)
          || keyboard_keypressed(SCANCODE_Q ) )
     {
-        p_vout->p_libvlc->b_die = VLC_TRUE;
+        libvlc_Quit( p_vout->p_libvlc );
     }
 
     return VLC_SUCCESS;