Commit 487d4795 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Fix previous commit: Only add brackets if actually needed,

i.e. do not add them around DNS hostnames
parent ae5de69e
......@@ -962,7 +962,7 @@ static int ParseConnection( vlc_object_t *p_obj, sdp_t *p_sdp )
if( psz_eof )
*psz_eof = '\0';
if( p_sdp->i_in == 6 )
if( ( p_sdp->i_in == 6 ) && strchr( psz_parse, ':' ) )
{
if( asprintf( &psz_uri, "[%s]", psz_parse ) == -1 )
psz_uri = NULL;
......
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