[vlc-devel] commit: --opengl-provider is a module parameter ( Rémi Denis-Courmont )
git version control
git at videolan.org
Tue May 5 16:41:43 CEST 2009
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue May 5 17:41:05 2009 +0300| [604e62dd7d7af078b672d8cd4762ca652893b914] | committer: Rémi Denis-Courmont
--opengl-provider is a module parameter
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=604e62dd7d7af078b672d8cd4762ca652893b914
---
modules/video_output/opengl.c | 10 +++-------
1 files changed, 3 insertions(+), 7 deletions(-)
diff --git a/modules/video_output/opengl.c b/modules/video_output/opengl.c
index 12dda3e..3fbe5e6 100644
--- a/modules/video_output/opengl.c
+++ b/modules/video_output/opengl.c
@@ -123,8 +123,8 @@ vlc_module_begin ()
#endif
add_shortcut( "opengl" )
/* Allow opengl provider plugin selection */
- add_string( "opengl-provider", "default", NULL, PROVIDER_TEXT,
- PROVIDER_LONGTEXT, true )
+ add_module( "opengl-provider", "opengl provider", NULL, NULL,
+ PROVIDER_TEXT, PROVIDER_LONGTEXT, true )
set_callbacks( CreateVout, DestroyVout )
vlc_module_end ()
@@ -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_alignment = p_vout->i_alignment;
- psz = config_GetPsz( p_vout, "opengl-provider" );
-
- msg_Dbg( p_vout, "requesting \"%s\" opengl provider",
- psz ? psz : "default" );
-
+ psz = var_CreateGetString( p_vout, "opengl-provider" );
p_sys->p_vout->p_module =
module_need( p_sys->p_vout, "opengl provider", psz, false );
free( psz );
More information about the vlc-devel
mailing list