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
546c5717
Commit
546c5717
authored
Aug 01, 2012
by
Ghislain MARY
Browse files
Set the state of the ICE session to Failed if all the check lists are in the Failed state.
parent
bbe94e8f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
src/ice.c
src/ice.c
+9
-0
No files found.
src/ice.c
View file @
546c5717
...
...
@@ -371,9 +371,18 @@ IceCheckListState ice_check_list_state(const IceCheckList* cl)
return
cl
->
state
;
}
static
int
ice_find_non_failed_check_list
(
const
IceCheckList
*
cl
)
{
return
(
cl
->
state
==
ICL_Failed
);
}
void
ice_check_list_set_state
(
IceCheckList
*
cl
,
IceCheckListState
state
)
{
cl
->
state
=
state
;
if
(
ms_list_find
(
cl
->
session
->
streams
,
(
void
(
*
)(
void
*
))
ice_find_non_failed_check_list
)
==
NULL
)
{
/* Set the state of the session to Failed if all the check lists are in the Failed state. */
cl
->
session
->
state
=
IS_Failed
;
}
}
void
ice_check_list_set_rtp_session
(
IceCheckList
*
cl
,
RtpSession
*
rtp_session
)
...
...
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