]> git.sesse.net Git - vlc/blobdiff - modules/video_output/fb.c
* modules/*: sanitization of the modules description strings.
[vlc] / modules / video_output / fb.c
index a8cec93b2bbf7a9e2c9c68249e37e0eb64f67bd6..4a0d8284c8b07d97afd9425041d9a83d336f58e8 100644 (file)
@@ -2,7 +2,7 @@
  * fb.c : framebuffer plugin for vlc
  *****************************************************************************
  * Copyright (C) 2000, 2001 VideoLAN
- * $Id: fb.c,v 1.1 2002/08/13 11:59:36 sam Exp $
+ * $Id: fb.c,v 1.5 2003/03/30 18:14:38 gbazin Exp $
  *
  * Authors: Samuel Hocevar <sam@zoy.org>
  *      
@@ -65,9 +65,9 @@ static void GfxMode        ( int i_tty );
 #define FB_DEV_VAR "fbdev"
 
 vlc_module_begin();                                            
-    add_category_hint( N_("Miscellaneous"), NULL );
-    add_string( FB_DEV_VAR, "/dev/fb0", NULL, N_("framebuffer device"), NULL );
-    set_description( _("Linux console framebuffer module") );
+    add_category_hint( N_("Frame Buffer"), NULL, VLC_FALSE );
+    add_file( FB_DEV_VAR, "/dev/fb0", NULL, N_("framebuffer device"), NULL, VLC_FALSE );
+    set_description( _("Linux console framebuffer video output") );
     set_capability( "video output", 30 );
     set_callbacks( Create, Destroy );
 vlc_module_end();
@@ -616,7 +616,7 @@ static void CloseDisplay( vout_thread_t *p_vout )
     memset( p_vout->p_sys->p_video, 0, p_vout->p_sys->i_page_size );
 
     /* Restore palette */
-    if( p_vout->p_sys->var_info.bits_per_pixel == 8 );
+    if( p_vout->p_sys->var_info.bits_per_pixel == 8 )
     {
         ioctl( p_vout->p_sys->i_fd,
                FBIOPUTCMAP, &p_vout->p_sys->fb_cmap );