vlc/vlc-3.0 | branch: master | Simon Latapie <[email protected]> | Mon Mar 25 19:42:36 2019 +0100| [264d5a9ec1bc1b2e4d9defa6be49cf7ef39a2984] | committer: Hugo Beauzée-Luyssen
access: rdp: fix URI parsing In 3.0 branch, demux_t does not contain psz_url (manually cherry-picked from cee9f5692b0a14cdaf7c32564f0b3b0a2011805c) Signed-off-by: Hugo Beauzée-Luyssen <[email protected]> > http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=264d5a9ec1bc1b2e4d9defa6be49cf7ef39a2984 --- modules/access/rdp.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/access/rdp.c b/modules/access/rdp.c index 2992090219..3e09047b6c 100644 --- a/modules/access/rdp.c +++ b/modules/access/rdp.c @@ -457,7 +457,11 @@ static int Open( vlc_object_t *p_this ) /* Parse uri params for pre-connect */ vlc_url_t url; - vlc_UrlParse( &url, p_demux->psz_location ); + char *psz_url; + if ( asprintf( &psz_url, "%s://%s", p_demux->psz_access, p_demux->psz_location ) == -1 ) + goto error; + vlc_UrlParse( &url, psz_url ); + free(psz_url); if ( !EMPTY_STR(url.psz_host) ) p_sys->psz_hostname = strdup( url.psz_host ); _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
