- var_Create( p_access, "http-user", VLC_VAR_STRING | VLC_VAR_DOINHERIT );
- var_Get( p_access, "http-user", &val );
- p_sys->psz_user = val.psz_string;
-
- var_Create( p_access, "http-pwd", VLC_VAR_STRING | VLC_VAR_DOINHERIT );
- var_Get( p_access, "http-pwd", &val );
- p_sys->psz_passwd = val.psz_string;
+ p_sys->psz_user = var_CreateGetString( p_access, "http-user" );
+ p_sys->psz_passwd = var_CreateGetString( p_access, "http-pwd" );