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
c8c9ef1c
Commit
c8c9ef1c
authored
Jan 25, 2016
by
Simon Morlat
Browse files
specify role immediately when asking for an ice restart.
parent
af6d6513
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/mediastreamer2/ice.h
View file @
c8c9ef1c
...
...
@@ -331,7 +331,7 @@ MS2_PUBLIC const char * ice_session_remote_pwd(const IceSession *session);
MS2_PUBLIC
IceSessionState
ice_session_state
(
const
IceSession
*
session
);
/**
* G
t
e the role of the agent for an ICE session.
* Ge
t
the role of the agent for an ICE session.
*
* @param session A pointer to a session
* @return The role of the agent for the session
...
...
@@ -502,7 +502,7 @@ MS2_PUBLIC void ice_session_select_candidates(IceSession *session);
*
* @param session A pointer to a session
*/
MS2_PUBLIC
void
ice_session_restart
(
IceSession
*
session
);
MS2_PUBLIC
void
ice_session_restart
(
IceSession
*
session
,
IceRole
role
);
/**
* Get the state of an ICE check list.
...
...
src/voip/ice.c
View file @
c8c9ef1c
...
...
@@ -3109,8 +3109,7 @@ static void ice_check_list_restart(IceCheckList *cl)
memset
(
&
cl
->
nomination_delay_start_time
,
0
,
sizeof
(
cl
->
nomination_delay_start_time
));
}
void
ice_session_restart
(
IceSession
*
session
)
{
void
ice_session_restart
(
IceSession
*
session
,
IceRole
role
){
int
i
;
ms_warning
(
"ICE session restart"
);
...
...
@@ -3132,6 +3131,7 @@ void ice_session_restart(IceSession *session)
if
(
session
->
streams
[
i
]
!=
NULL
)
ice_check_list_restart
(
session
->
streams
[
i
]);
}
ice_session_set_role
(
session
,
role
);
}
...
...
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