Commit 72618adb authored by Marian Durkovic's avatar Marian Durkovic

backport [13632]

parent 4173d838
......@@ -879,6 +879,7 @@ static int ParseConnection( vlc_object_t *p_obj, sdp_t *p_sdp )
char *psz_parse;
char *psz_uri = NULL;
char *psz_proto = NULL;
char psz_source[256];
int i_port = 0;
/* Parse c= field */
......@@ -1030,7 +1031,14 @@ static int ParseConnection( vlc_object_t *p_obj, sdp_t *p_sdp )
i_port = 1234;
}
asprintf( &p_sdp->psz_uri, "%s://@%s:%i", psz_proto, psz_uri, i_port );
/* handle SSM case */
psz_parse = GetAttribute( p_sdp, "source-filter" );
psz_source[0] = '\0';
if( psz_parse ) sscanf( psz_parse, " incl IN IP%*s %*s %255s ", psz_source);
asprintf( &p_sdp->psz_uri, "%s://%s@%s:%i", psz_proto, psz_source,
psz_uri, i_port );
FREE( psz_uri );
FREE( psz_proto );
......
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