Commit ea7d9bab authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Deprecated --sdl-video-driver

Refer to 7e5403d0 for rationale.
parent a54335c7
...@@ -51,10 +51,6 @@ static void Close(vlc_object_t *); ...@@ -51,10 +51,6 @@ static void Close(vlc_object_t *);
"Force the SDL renderer to use a specific chroma format instead of " \ "Force the SDL renderer to use a specific chroma format instead of " \
"trying to improve performances by using the most efficient one.") "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() vlc_module_begin()
set_shortname("SDL") set_shortname("SDL")
set_category(CAT_VIDEO) set_category(CAT_VIDEO)
...@@ -63,9 +59,7 @@ vlc_module_begin() ...@@ -63,9 +59,7 @@ vlc_module_begin()
set_capability("vout display", 60) set_capability("vout display", 60)
add_shortcut("sdl") add_shortcut("sdl")
add_string("sdl-chroma", NULL, NULL, CHROMA_TEXT, CHROMA_LONGTEXT, true) add_string("sdl-chroma", NULL, NULL, CHROMA_TEXT, CHROMA_LONGTEXT, true)
#ifdef HAVE_SETENV add_obsolete_string("sdl-video-driver") /* obsolete since 1.1.0 */
add_string("sdl-video-driver", NULL, NULL, DRIVER_TEXT, DRIVER_LONGTEXT, true)
#endif
set_callbacks(Open, Close) set_callbacks(Open, Close)
#if defined(__i386__) || defined(__x86_64__) #if defined(__i386__) || defined(__x86_64__)
/* On i386, SDL is linked against svgalib */ /* On i386, SDL is linked against svgalib */
...@@ -130,14 +124,6 @@ static int Open(vlc_object_t *object) ...@@ -130,14 +124,6 @@ static int Open(vlc_object_t *object)
return VLC_ENOMEM; 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; int sdl_flags = SDL_INIT_VIDEO;
#ifndef WIN32 #ifndef WIN32
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment