vlc | branch: master | Filip Roséen <fi...@atch.se> | Fri Jul 22 03:02:54 2016 +0200| [e5172af02761157ad34783aa9dab084736d75d93] | committer: Jean-Baptiste Kempf
access/sftp: fix argument to vlc_UrlParse 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 fixes the issue by instead passing p_access->psz_url. Signed-off-by: Jean-Baptiste Kempf <j...@videolan.org> > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e5172af02761157ad34783aa9dab084736d75d93 --- 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 */ _______________________________________________ vlc-commits mailing list vlc-commits@videolan.org https://mailman.videolan.org/listinfo/vlc-commits