[vlc-devel] [PATCH 1/3] access/sftp: fix argument to vlc_UrlParse

Filip Roséen filip at atch.se
Fri Jul 22 03:02:54 CEST 2016


Given that p_access->psz_location is the input-mrl with the scheme part
stripped, and that part is required for vlc_UrlParse to properly
identify the host we would never be able to open up a remote resource
using the module.

This patch fixes the issue by instead passing p_access->psz_url.
---
 modules/access/sftp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/access/sftp.c b/modules/access/sftp.c
index c855f7a..64fda33 100644
--- a/modules/access/sftp.c
+++ b/modules/access/sftp.c
@@ -156,7 +156,7 @@ static int Open( vlc_object_t* p_this )
     vlc_credential_init( &credential, &credential_url );
 
     /* Parse the URL */
-    vlc_UrlParse( &url, p_access->psz_location );
+    vlc_UrlParse( &url, p_access->psz_url );
     vlc_uri_decode( url.psz_path );
 
     /* Check for some parameters */
-- 
2.9.0



More information about the vlc-devel mailing list