[vlc-devel] commit: MMSH: use var_Inherit ( 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:22:51 2009 +0200| [b575a47b6d106da3e4c4ed9c384798b89a4030d8] | committer: Rémi Denis-Courmont
MMSH: use var_Inherit
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b575a47b6d106da3e4c4ed9c384798b89a4030d8
---
modules/access/mms/mmsh.c | 15 +++++----------
1 files changed, 5 insertions(+), 10 deletions(-)
diff --git a/modules/access/mms/mmsh.c b/modules/access/mms/mmsh.c
index ec0d3e4..d6551ab 100644
--- a/modules/access/mms/mmsh.c
+++ b/modules/access/mms/mmsh.c
@@ -90,23 +90,18 @@ int MMSHOpen( access_t *p_access )
/* Check proxy */
/* TODO reuse instead http-proxy from http access ? */
- psz_proxy = var_CreateGetString( p_access, "mmsh-proxy" );
- if( !*psz_proxy )
+ psz_proxy = var_CreateGetNonEmptyString( p_access, "mmsh-proxy" );
+ if( !psz_proxy )
{
- char *psz_http_proxy = config_GetPsz( p_access, "http-proxy" );
- if( psz_http_proxy && *psz_http_proxy )
+ char *psz_http_proxy = var_InheritString( p_access, "http-proxy" );
+ if( psz_http_proxy )
{
- free( psz_proxy );
psz_proxy = psz_http_proxy;
var_SetString( p_access, "mmsh-proxy", psz_proxy );
}
- else
- {
- free( psz_http_proxy );
- }
}
- if( *psz_proxy )
+ if( psz_proxy )
{
p_sys->b_proxy = true;
vlc_UrlParse( &p_sys->proxy, psz_proxy, 0 );
More information about the vlc-devel
mailing list