[vlc-devel] commit: DVD: kill config_Get ( Rémi Denis-Courmont )

git version control git at videolan.org
Wed Dec 30 19:39:44 CET 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Dec 30 20:15:09 2009 +0200| [481a5ae1b811c5835cad50fc776154ac37babeef] | committer: Rémi Denis-Courmont 

DVD: kill config_Get

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=481a5ae1b811c5835cad50fc776154ac37babeef
---

 modules/access/dvdread.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/access/dvdread.c b/modules/access/dvdread.c
index 3758fbf..a691a49 100644
--- a/modules/access/dvdread.c
+++ b/modules/access/dvdread.c
@@ -223,8 +223,8 @@ static int Open( vlc_object_t *p_this )
 #endif
 
     /* Override environment variable DVDCSS_METHOD with config option */
-    psz_dvdcss_env = config_GetPsz( p_demux, "dvdread-css-method" );
-    if( psz_dvdcss_env && *psz_dvdcss_env )
+    psz_dvdcss_env = var_InheritString( p_demux, "dvdread-css-method" );
+    if( psz_dvdcss_env )
 #ifdef HAVE_SETENV
         setenv( "DVDCSS_METHOD", psz_dvdcss_env, 1 );
 #else




More information about the vlc-devel mailing list