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

--opengl-provider is a module parameter

parent 1c9e7488
...@@ -123,8 +123,8 @@ vlc_module_begin () ...@@ -123,8 +123,8 @@ vlc_module_begin ()
#endif #endif
add_shortcut( "opengl" ) add_shortcut( "opengl" )
/* Allow opengl provider plugin selection */ /* Allow opengl provider plugin selection */
add_string( "opengl-provider", "default", NULL, PROVIDER_TEXT, add_module( "opengl-provider", "opengl provider", NULL, NULL,
PROVIDER_LONGTEXT, true ) PROVIDER_TEXT, PROVIDER_LONGTEXT, true )
set_callbacks( CreateVout, DestroyVout ) set_callbacks( CreateVout, DestroyVout )
vlc_module_end () vlc_module_end ()
...@@ -194,11 +194,7 @@ static int CreateVout( vlc_object_t *p_this ) ...@@ -194,11 +194,7 @@ static int CreateVout( vlc_object_t *p_this )
p_sys->p_vout->i_zoom = p_vout->i_zoom; p_sys->p_vout->i_zoom = p_vout->i_zoom;
p_sys->p_vout->i_alignment = p_vout->i_alignment; p_sys->p_vout->i_alignment = p_vout->i_alignment;
psz = config_GetPsz( p_vout, "opengl-provider" ); psz = var_CreateGetString( p_vout, "opengl-provider" );
msg_Dbg( p_vout, "requesting \"%s\" opengl provider",
psz ? psz : "default" );
p_sys->p_vout->p_module = p_sys->p_vout->p_module =
module_need( p_sys->p_vout, "opengl provider", psz, false ); module_need( p_sys->p_vout, "opengl provider", psz, false );
free( psz ); free( psz );
......
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