]> git.sesse.net Git - vlc/blobdiff - modules/access/smb.c
Update LGPL license blurb, choosing v2.1+.
[vlc] / modules / access / smb.c
index c44394ce3ed90fd572f5517dc68294838dadf9c3..4d06b0b3dc1fdb6046c5e7ce645563bf5f3f0c86 100644 (file)
@@ -184,11 +184,11 @@ static int Open( vlc_object_t *p_this )
     /* Build an SMB URI
      * smb://[[[domain;]user[:password@]]server[/share[/path[/file]]]] */
 
-    if( !psz_user ) psz_user = var_CreateGetString( p_access, "smb-user" );
+    if( !psz_user ) psz_user = var_InheritString( p_access, "smb-user" );
     if( psz_user && !*psz_user ) { free( psz_user ); psz_user = NULL; }
-    if( !psz_pwd ) psz_pwd = var_CreateGetString( p_access, "smb-pwd" );
+    if( !psz_pwd ) psz_pwd = var_InheritString( p_access, "smb-pwd" );
     if( psz_pwd && !*psz_pwd ) { free( psz_pwd ); psz_pwd = NULL; }
-    if( !psz_domain ) psz_domain = var_CreateGetString( p_access, "smb-domain" );
+    if( !psz_domain ) psz_domain = var_InheritString( p_access, "smb-domain" );
     if( psz_domain && !*psz_domain ) { free( psz_domain ); psz_domain = NULL; }
 
 #ifdef WIN32
@@ -335,7 +335,7 @@ static int Control( access_t *p_access, int i_query, va_list args )
 
     case ACCESS_GET_PTS_DELAY:
         *va_arg( args, int64_t * )
-                  = (int64_t)var_GetInteger( p_access, "smb-caching" ) * 1000;
+                  = var_GetInteger( p_access, "smb-caching" ) * 1000;
         break;
 
     case ACCESS_SET_PAUSE_STATE: