From ea7d9bab9bff940fff58b25db5ef275ddbde016b Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Sun, 11 Apr 2010 11:21:35 +0300 Subject: [PATCH] Deprecated --sdl-video-driver Refer to 7e5403d0e7b51043a008ad6d8c6a8f37adfe33e2 for rationale. --- modules/video_output/sdl.c | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/modules/video_output/sdl.c b/modules/video_output/sdl.c index b67b755712..ea78cfe285 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 -- 2.39.2