X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=plugins%2Fsdl%2Fvout_sdl.c;h=8a1e4e34741f6d19bdbb813e21a5d746d5b7f9d7;hb=d4f18c4eadb23de73e7ae1d1e2e899cbbfbef567;hp=c898c795bca949385c769121e04337561878d2a2;hpb=aaee289a1ea035520cb85cf25e7ba5c43ebc80b3;p=vlc diff --git a/plugins/sdl/vout_sdl.c b/plugins/sdl/vout_sdl.c index c898c795bc..8a1e4e3474 100644 --- a/plugins/sdl/vout_sdl.c +++ b/plugins/sdl/vout_sdl.c @@ -2,7 +2,7 @@ * vout_sdl.c: SDL video output display method ***************************************************************************** * Copyright (C) 1998-2001 VideoLAN - * $Id: vout_sdl.c,v 1.84 2002/03/17 17:00:38 sam Exp $ + * $Id: vout_sdl.c,v 1.85 2002/03/18 19:14:52 sam Exp $ * * Authors: Samuel Hocevar * Pierre Baillet @@ -154,6 +154,8 @@ void _M( vout_getfunctions )( function_list_t * p_function_list ) *****************************************************************************/ static int vout_Create( vout_thread_t *p_vout ) { + char *psz_method; + if( SDL_WasInit( SDL_INIT_VIDEO ) != 0 ) { return( 1 ); @@ -167,6 +169,20 @@ static int vout_Create( vout_thread_t *p_vout ) return( 1 ); } + psz_method = config_GetPszVariable( "vout" ); + if( psz_method ) + { + while( *psz_method && *psz_method != ':' ) + { + psz_method++; + } + + if( *psz_method ) + { + setenv( "SDL_VIDEODRIVER", psz_method + 1, 1 ); + } + } + /* Initialize library */ if( SDL_Init( SDL_INIT_VIDEO #ifndef WIN32