Commit 8851451a authored by hartman's avatar hartman
Browse files

* 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
......@@ -176,7 +176,7 @@ struct sdp_t
/* "computed" URI */
char *psz_uri;
int i_in; /* IP version */
int i_in; /* IP version */
int i_media;
int i_media_type;
......@@ -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