[vlc-commits] mms: fix URl parsing (fixes #17245)

Rémi Denis-Courmont git at videolan.org
Fri Aug 5 19:29:53 CEST 2016


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Aug  5 20:29:22 2016 +0300| [d0b057e37ab89bbb6bfa120c21f705cc7319bea7] | committer: Rémi Denis-Courmont

mms: fix URl parsing (fixes #17245)

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

 modules/access/mms/mmsh.c  | 2 +-
 modules/access/mms/mmstu.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/access/mms/mmsh.c b/modules/access/mms/mmsh.c
index 32a09ab..2e914d8 100644
--- a/modules/access/mms/mmsh.c
+++ b/modules/access/mms/mmsh.c
@@ -136,7 +136,7 @@ int MMSHOpen( access_t *p_access )
     }
 
     /* open a tcp connection */
-    vlc_UrlParse( &p_sys->url, p_access->psz_location );
+    vlc_UrlParse( &p_sys->url, p_access->psz_url );
     if( ( p_sys->url.psz_host == NULL ) ||
         ( *p_sys->url.psz_host == '\0' ) )
     {
diff --git a/modules/access/mms/mmstu.c b/modules/access/mms/mmstu.c
index c413d5f..c55c288 100644
--- a/modules/access/mms/mmstu.c
+++ b/modules/access/mms/mmstu.c
@@ -105,7 +105,7 @@ int  MMSTUOpen( access_t *p_access )
     vlc_mutex_init( &p_sys->lock_netwrite );
 
     /* *** Parse URL and get server addr/port and path *** */
-    vlc_UrlParse( &p_sys->url, p_access->psz_location );
+    vlc_UrlParse( &p_sys->url, p_access->psz_url );
     if( p_sys->url.psz_host == NULL || *p_sys->url.psz_host == '\0' )
     {
         msg_Err( p_access, "invalid server name" );



More information about the vlc-commits mailing list