Commit 8851451a authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

* When we read the IPv6 address from the SDP, it is not bracketed (unless the...

* When we read the IPv6 address from the SDP, it is not bracketed (unless the SDP is broken). If not []'ed then add them before we create out playlist entry.
parent 6fb62dd1
......@@ -909,13 +909,17 @@ static int ParseConnection( vlc_object_t *p_obj, sdp_t *p_sdp )
if( psz_eof )
{
*psz_eof = 0;
*psz_eof = '\0';
}
else
{
msg_Dbg( p_obj, "incorrect c field, %s", p_sdp->psz_connection );
}
psz_uri = strdup( psz_parse );
if( p_sdp->i_in == 6 && ( isxdigit( *psz_parse ) || *psz_parse == ':' ) )
{
asprintf( &psz_uri, "[%s]", psz_parse );
}
else psz_uri = strdup( psz_parse );
}
......@@ -931,7 +935,7 @@ static int ParseConnection( vlc_object_t *p_obj, sdp_t *p_sdp )
*psz_eof = '\0';
if( strncmp( psz_parse, "audio", 5 ) &&
strncmp( psz_parse, "video",5 ) )
strncmp( psz_parse, "video", 5 ) )
{
msg_Warn( p_obj, "unhandled media type -%s-", psz_parse );
FREE( psz_uri );
......
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