[vlc-commits] http: simplify using access_t.psz_url
Rémi Denis-Courmont
git at videolan.org
Wed Sep 2 21:54:15 CEST 2015
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Sep 2 22:28:36 2015 +0300| [67e977582edf61eb6434c45769a1d69237a2b96f] | committer: Rémi Denis-Courmont
http: simplify using access_t.psz_url
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=67e977582edf61eb6434c45769a1d69237a2b96f
---
modules/access/http.c | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
diff --git a/modules/access/http.c b/modules/access/http.c
index b5634d2..f9a5432 100644
--- a/modules/access/http.c
+++ b/modules/access/http.c
@@ -216,15 +216,8 @@ static vlc_http_cookie_jar_t *GetCookieJar( vlc_object_t *p_this );
static int Open( vlc_object_t *p_this )
{
access_t *p_access = (access_t*)p_this;
- char *psz_url;
- if( asprintf( &psz_url, "%s://%s", p_access->psz_access,
- p_access->psz_location ) == -1 )
- return VLC_ENOMEM;
-
- int ret = OpenRedirected( p_this, psz_url, 5 );
- free( psz_url );
- return ret;
+ return OpenRedirected( p_this, p_access->psz_url, 5 );
}
/**
More information about the vlc-commits
mailing list