Commit 14ea97de authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

shout: fix dst parameter backward compatibility (fixes #19659)

(cherry picked from commit edc566d4)
Signed-off-by: Rémi Denis-Courmont's avatarRémi Denis-Courmont <remi@remlab.net>
parent 056601b5
......@@ -187,6 +187,15 @@ static int Open( vlc_object_t *p_this )
if( url.i_port <= 0 )
url.i_port = 8000;
if( url.psz_host == NULL )
{ /* Backward compatibility with bind@path syntax */
vlc_UrlClean( &url );
if( unlikely(asprintf( &psz_url, "//%s", p_access->psz_path ) == -1) )
return VLC_ENOMEM;
vlc_UrlParse( &url, psz_url );
free( psz_url );
}
p_sys = p_access->p_sys = malloc( sizeof( sout_access_out_sys_t ) );
if( !p_sys )
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment