Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
mediastreamer2
Commits
56fb62d8
Commit
56fb62d8
authored
Jun 01, 2016
by
Ghislain MARY
Browse files
Fix ICE with rtcp-mux.
parent
d322b017
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
src/voip/ice.c
src/voip/ice.c
+9
-3
No files found.
src/voip/ice.c
View file @
56fb62d8
...
...
@@ -538,6 +538,7 @@ bool_t ice_check_list_default_local_candidate(const IceCheckList *cl, IceCandida
if
(
rtcp_candidate
!=
NULL
)
{
componentID
=
2
;
elem
=
ms_list_find_custom
(
cl
->
local_candidates
,
(
MSCompareFunc
)
ice_find_default_local_candidate
,
&
componentID
);
if
(
elem
==
NULL
)
return
FALSE
;
*
rtcp_candidate
=
(
IceCandidate
*
)
elem
->
data
;
}
...
...
@@ -1823,9 +1824,14 @@ static MSStunAddress ice_transport_address_to_stun_address(IceTransportAddress *
}
static
void
ice_transport_address_to_printable_ip_address
(
const
IceTransportAddress
*
taddr
,
char
*
printable_ip
,
size_t
printable_ip_size
)
{
struct
addrinfo
*
ai
=
bctbx_ip_address_to_addrinfo
(
taddr
->
family
,
SOCK_DGRAM
,
taddr
->
ip
,
taddr
->
port
);
bctbx_addrinfo_to_printable_ip_address
(
ai
,
printable_ip
,
printable_ip_size
);
bctbx_freeaddrinfo
(
ai
);
struct
addrinfo
*
ai
;
if
(
taddr
==
NULL
)
{
*
printable_ip
=
'\0'
;
}
else
{
ai
=
bctbx_ip_address_to_addrinfo
(
taddr
->
family
,
SOCK_DGRAM
,
taddr
->
ip
,
taddr
->
port
);
bctbx_addrinfo_to_printable_ip_address
(
ai
,
printable_ip
,
printable_ip_size
);
bctbx_freeaddrinfo
(
ai
);
}
}
static
int
ice_find_candidate_from_foundation
(
const
IceCandidate
*
candidate
,
const
char
*
foundation
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment