[vlc-commits] commit: Deprecated --sdl-video-driver ( Rémi Denis-Courmont )
git at videolan.org
git at videolan.org
Sun Apr 11 10:22:02 CEST 2010
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Apr 11 11:21:35 2010 +0300| [ea7d9bab9bff940fff58b25db5ef275ddbde016b] | committer: Rémi Denis-Courmont
Deprecated --sdl-video-driver
Refer to 7e5403d0e7b51043a008ad6d8c6a8f37adfe33e2 for rationale.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ea7d9bab9bff940fff58b25db5ef275ddbde016b
---
modules/video_output/sdl.c | 16 +---------------
1 files changed, 1 insertions(+), 15 deletions(-)
diff --git a/modules/video_output/sdl.c b/modules/video_output/sdl.c
index b67b755..ea78cfe 100644
--- a/modules/video_output/sdl.c
+++ b/modules/video_output/sdl.c
@@ -51,10 +51,6 @@ static void Close(vlc_object_t *);
"Force the SDL renderer to use a specific chroma format instead of " \
"trying to improve performances by using the most efficient one.")
-#define DRIVER_TEXT N_("SDL video driver name")
-#define DRIVER_LONGTEXT N_(\
- "Force a specific SDL video output driver.")
-
vlc_module_begin()
set_shortname("SDL")
set_category(CAT_VIDEO)
@@ -63,9 +59,7 @@ vlc_module_begin()
set_capability("vout display", 60)
add_shortcut("sdl")
add_string("sdl-chroma", NULL, NULL, CHROMA_TEXT, CHROMA_LONGTEXT, true)
-#ifdef HAVE_SETENV
- add_string("sdl-video-driver", NULL, NULL, DRIVER_TEXT, DRIVER_LONGTEXT, true)
-#endif
+ add_obsolete_string("sdl-video-driver") /* obsolete since 1.1.0 */
set_callbacks(Open, Close)
#if defined(__i386__) || defined(__x86_64__)
/* On i386, SDL is linked against svgalib */
@@ -130,14 +124,6 @@ static int Open(vlc_object_t *object)
return VLC_ENOMEM;
}
-#ifdef HAVE_SETENV
- char *psz_driver = var_CreateGetNonEmptyString(vd, "sdl-video-driver");
- if (psz_driver) {
- setenv("SDL_VIDEODRIVER", psz_driver, 1);
- free(psz_driver);
- }
-#endif
-
/* */
int sdl_flags = SDL_INIT_VIDEO;
#ifndef WIN32
More information about the vlc-commits
mailing list