Browse Source

access: rdp: fix URI parsing

In 3.0 branch, demux_t does not contain psz_url

(manually cherry-picked from cee9f5692b)
Signed-off-by: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
pull/135/head
Simon Latapie 7 years ago
committed by Hugo Beauzée-Luyssen
parent
commit
264d5a9ec1
  1. 6
      modules/access/rdp.c

6
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 );

Loading…
Cancel
Save