]> git.sesse.net Git - vlc/commitdiff
* moved the "display" option from main to the relevant plugins. ( We now have
authorGildas Bazin <gbazin@videolan.org>
Mon, 25 Mar 2002 19:16:20 +0000 (19:16 +0000)
committerGildas Bazin <gbazin@videolan.org>
Mon, 25 Mar 2002 19:16:20 +0000 (19:16 +0000)
   the x11_display, xvideo_display, xmga_display and ggi_display options ).

plugins/ggi/ggi.c
plugins/mga/xmga.c
plugins/x11/x11.c
plugins/x11/xcommon.c
plugins/x11/xvideo.c
src/interface/main.c

index d9cfcd64160f653ba75481a26ebbcd69ba9657cc..99d4a13d514fac124ba723529f9b56081ef18157 100644 (file)
@@ -2,7 +2,7 @@
  * ggi.c : GGI plugin for vlc
  *****************************************************************************
  * Copyright (C) 2000, 2001 VideoLAN
- * $Id: ggi.c,v 1.18 2002/03/17 17:00:38 sam Exp $
+ * $Id: ggi.c,v 1.19 2002/03/25 19:16:20 gbazin Exp $
  *
  * Authors: Vincent Seguin <seguin@via.ecp.fr>
  *          Samuel Hocevar <sam@zoy.org>
@@ -59,7 +59,14 @@ static void SetPalette     ( vout_thread_t *, u16 *, u16 *, u16 * );
 /*****************************************************************************
  * Building configuration tree
  *****************************************************************************/
+#define DISPLAY_TEXT "X11 display name"
+#define DISPLAY_LONGTEXT "Specify the X11 hardware display you want to use.\n"\
+                         "By default vlc will use the value of the DISPLAY " \
+                         "environment variable."
+
 MODULE_CONFIG_START
+ADD_CATEGORY_HINT( "Miscellaneous", NULL )
+ADD_STRING  ( "ggi_display", NULL, NULL, DISPLAY_TEXT, DISPLAY_LONGTEXT )
 MODULE_CONFIG_STOP
 
 MODULE_INIT_START
@@ -399,7 +406,7 @@ static int OpenDisplay( vout_thread_t *p_vout )
     }
 
     /* Open display */
-    psz_display = config_GetPszVariable( "display" );
+    psz_display = config_GetPszVariable( "ggi_display" );
 
     p_vout->p_sys->p_display = ggiOpen( psz_display, NULL );
     if( psz_display ) free( psz_display );
index 4801544146c336cfab0b5d9b37c8518bb003dc7a..8067be6446e285efbb18cf98296a413ad2564435 100644 (file)
@@ -2,7 +2,7 @@
  * xmga.c : X11 MGA plugin for vlc
  *****************************************************************************
  * Copyright (C) 1998-2001 VideoLAN
- * $Id: xmga.c,v 1.10 2002/03/21 22:10:33 gbazin Exp $
+ * $Id: xmga.c,v 1.11 2002/03/25 19:16:20 gbazin Exp $
  *
  * Authors: Vincent Seguin <seguin@via.ecp.fr>
  *          Samuel Hocevar <sam@zoy.org>
@@ -102,8 +102,14 @@ static void ToggleCursor   ( vout_thread_t * );
                         "2) Completly bypass the window manager, but then " \
                         "nothing will be able to show on top of the video"
 
+#define DISPLAY_TEXT "X11 display name"
+#define DISPLAY_LONGTEXT "Specify the X11 hardware display you want to use.\n"\
+                         "By default vlc will use the value of the DISPLAY " \
+                         "environment variable."
+
 MODULE_CONFIG_START
 ADD_CATEGORY_HINT( "Miscellaneous", NULL )
+ADD_STRING  ( "xmga_display", NULL, NULL, DISPLAY_TEXT, DISPLAY_LONGTEXT )
 ADD_BOOL    ( "xmga_altfullscreen", NULL, ALT_FS_TEXT, ALT_FS_LONGTEXT )
 MODULE_CONFIG_STOP
 
@@ -283,7 +289,7 @@ static int vout_Create( vout_thread_t *p_vout )
 
     /* Open display, unsing the "display" config variable or the DISPLAY
      * environment variable */
-    psz_display = config_GetPszVariable( "display" );
+    psz_display = config_GetPszVariable( "xmga_display" );
     p_vout->p_sys->p_display = XOpenDisplay( psz_display );
 
     if( p_vout->p_sys->p_display == NULL )                          /* error */
index 64702e53d9260dbd3e303a3b0481eee4437db165..ced6f3c8b2bb9c42e63d56ba3088d4454788a23b 100644 (file)
@@ -2,7 +2,7 @@
  * x11.c : X11 plugin for vlc
  *****************************************************************************
  * Copyright (C) 1998-2001 VideoLAN
- * $Id: x11.c,v 1.13 2002/03/17 13:53:21 gbazin Exp $
+ * $Id: x11.c,v 1.14 2002/03/25 19:16:20 gbazin Exp $
  *
  * Authors: Vincent Seguin <seguin@via.ecp.fr>
  *          Samuel Hocevar <sam@zoy.org>
                         "2) Completly bypass the window manager, but then " \
                         "nothing will be able to show on top of the video"
 
+#define DISPLAY_TEXT "X11 display name"
+#define DISPLAY_LONGTEXT "Specify the X11 hardware display you want to use.\n"\
+                         "By default vlc will use the value of the DISPLAY " \
+                         "environment variable."
+
 MODULE_CONFIG_START
 ADD_CATEGORY_HINT( "Miscellaneous", NULL )
+ADD_STRING  ( "x11_display", NULL, NULL, DISPLAY_TEXT, DISPLAY_LONGTEXT )
 ADD_BOOL    ( "x11_altfullscreen", NULL, ALT_FS_TEXT, ALT_FS_LONGTEXT )
 MODULE_CONFIG_STOP
 
index 960512392b77a6109096e7c101e3a12910e2d618..b25b8a2624e92d3d7ed2aafa9ffa93607f5d4bef 100644 (file)
@@ -2,7 +2,7 @@
  * xcommon.c: Functions common to the X11 and XVideo plugins
  *****************************************************************************
  * Copyright (C) 1998-2001 VideoLAN
- * $Id: xcommon.c,v 1.25 2002/03/21 22:10:33 gbazin Exp $
+ * $Id: xcommon.c,v 1.26 2002/03/25 19:16:20 gbazin Exp $
  *
  * Authors: Vincent Seguin <seguin@via.ecp.fr>
  *          Samuel Hocevar <sam@zoy.org>
@@ -299,7 +299,12 @@ static int vout_Create( vout_thread_t *p_vout )
 
     /* Open display, unsing the "display" config variable or the DISPLAY
      * environment variable */
-    psz_display = config_GetPszVariable( "display" );
+#ifdef MODULE_NAME_IS_xvideo
+    psz_display = config_GetPszVariable( "xvideo_display" );
+#else
+    psz_display = config_GetPszVariable( "x11_display" );
+#endif
+
     p_vout->p_sys->p_display = XOpenDisplay( psz_display );
 
     if( p_vout->p_sys->p_display == NULL )                          /* error */
index f56ff168e40e848b0f532b5f790314dcf0a18800..05dd1e41a3b63dc98c43026d79f69fd731773386 100644 (file)
@@ -2,7 +2,7 @@
  * xvideo.c : Xvideo plugin for vlc
  *****************************************************************************
  * Copyright (C) 1998-2001 VideoLAN
- * $Id: xvideo.c,v 1.8 2002/03/17 13:53:21 gbazin Exp $
+ * $Id: xvideo.c,v 1.9 2002/03/25 19:16:20 gbazin Exp $
  *
  * Authors: Shane Harper <shanegh@optusnet.com.au>
  *          Vincent Seguin <seguin@via.ecp.fr>
                         "2) Completly bypass the window manager, but then " \
                         "nothing will be able to show on top of the video"
 
+#define DISPLAY_TEXT "X11 display name"
+#define DISPLAY_LONGTEXT "Specify the X11 hardware display you want to use.\n"\
+                         "By default vlc will use the value of the DISPLAY " \
+                         "environment variable."
+
 MODULE_CONFIG_START
 ADD_CATEGORY_HINT( "Miscellaneous", NULL )
+ADD_STRING  ( "xvideo_display", NULL, NULL, DISPLAY_TEXT, DISPLAY_LONGTEXT )
 ADD_INTEGER ( "xvideo_adaptor", -1, NULL, ADAPTOR_TEXT, ADAPTOR_LONGTEXT )
 ADD_BOOL    ( "xvideo_altfullscreen", NULL, ALT_FS_TEXT, ALT_FS_LONGTEXT )
 MODULE_CONFIG_STOP
index 39756fd168317da2f520a2e6738226587bde572b..a0e31cca5cf4cfffac14db7c954583cedbbbb287 100644 (file)
@@ -4,7 +4,7 @@
  * and spawn threads.
  *****************************************************************************
  * Copyright (C) 1998-2001 VideoLAN
- * $Id: main.c,v 1.168 2002/03/25 02:06:24 jobi Exp $
+ * $Id: main.c,v 1.169 2002/03/25 19:16:20 gbazin Exp $
  *
  * Authors: Vincent Seguin <seguin@via.ecp.fr>
  *          Samuel Hocevar <sam@zoy.org>
                          "video decoding stage shouldn't even be done, so it" \
                          "can allow you to save some processing power"
 
-#define DISPLAY_TEXT "display identifier"
-#define DISPLAY_LONGTEXT NULL
-
 #define WIDTH_TEXT "video width"
 #define WIDTH_LONGTEXT "You can enforce the video width here.\nNote" \
-                       "that by default vlc will adapt to the video properties"
+                       "that by default vlc will adapt to the video " \
+                       "characteristics"
 
 #define HEIGHT_TEXT "video height"
-#define HEIGHT_LONGTEXT NULL
+#define HEIGHT_LONGTEXT "You can enforce the video height here.\nNote" \
+                        "that by default vlc will adapt to the video " \
+                        "characteristics"
 
 #define GRAYSCALE_TEXT "grayscale video output"
-#define GRAYSCALE_LONGTEXT NULL
+#define GRAYSCALE_LONGTEXT "Using this option, vlc will not decode the color "\
+                           "information from the video (this can also allow " \
+                           "you to save some processing power)"
 
 #define FULLSCREEN_TEXT "fullscreen video output"
-#define FULLSCREEN_LONGTEXT NULL
+#define FULLSCREEN_LONGTEXT "If this option is enabled, vlc will always " \
+                            "start a video in fullscreen mode"
 
-#define NOOVERLAY_TEXT "disable accelerated display"
-#define NOOVERLAY_LONGTEXT NULL
+#define NOOVERLAY_TEXT "disable hardware acceleration for the video output"
+#define NOOVERLAY_LONGTEXT "By default vlc will try to take advantage of the "\
+                           "overlay capabilities of you graphics card.\n"
 
 #define SPUMARGIN_TEXT "force SPU position"
 #define SPUMARGIN_LONGTEXT NULL
@@ -313,7 +317,6 @@ ADD_INTEGER ( "aout_format", 0, NULL, FORMAT_TEXT,
 ADD_CATEGORY_HINT( "Video", NULL )
 ADD_PLUGIN  ( "vout", MODULE_CAPABILITY_VOUT, NULL, NULL, VOUT_TEXT, VOUT_LONGTEXT )
 ADD_BOOL    ( "novideo", NULL, NOVIDEO_TEXT, NOVIDEO_LONGTEXT )
-ADD_STRING  ( "display", NULL, NULL, DISPLAY_TEXT, DISPLAY_LONGTEXT )
 ADD_INTEGER ( "width", -1, NULL, WIDTH_TEXT, WIDTH_LONGTEXT )
 ADD_INTEGER ( "height", -1, NULL, HEIGHT_TEXT, HEIGHT_LONGTEXT )
 ADD_BOOL    ( "grayscale", NULL, GRAYSCALE_TEXT, GRAYSCALE_LONGTEXT )