Commit 8cb7f95f authored by Kai Vehmanen's avatar Kai Vehmanen

Fixed a minor bug in unfreeze algorithm. Updated documentation.

darcs-hash:20070717181707-77cd4-35e220e085c6683fb300ef1489947ae9d97f56a2.gz
parent 19eeae97
...@@ -190,6 +190,7 @@ static void priv_conn_check_unfreeze_related (NiceAgent *agent, CandidateCheckPa ...@@ -190,6 +190,7 @@ static void priv_conn_check_unfreeze_related (NiceAgent *agent, CandidateCheckPa
strcmp (p->foundation, ok_check->foundation) == 0) { strcmp (p->foundation, ok_check->foundation) == 0) {
g_debug ("Unfreezing check %p (after succesful check %p).", p, ok_check); g_debug ("Unfreezing check %p (after succesful check %p).", p, ok_check);
p->state = NICE_CHECK_WAITING; p->state = NICE_CHECK_WAITING;
++unfrozen;
} }
} }
} }
...@@ -451,6 +452,10 @@ gint conn_check_compare (const CandidateCheckPair *a, const CandidateCheckPair * ...@@ -451,6 +452,10 @@ gint conn_check_compare (const CandidateCheckPair *a, const CandidateCheckPair *
return 0; return 0;
} }
/**
* Creates a new connectivity check pair and adds it to
* the agent's list of checks.
*/
static gboolean priv_add_new_check_pair (NiceAgent *agent, guint stream_id, Component *component, NiceCandidate *local, NiceCandidate *remote, NiceCheckState initial_state, gboolean use_candidate) static gboolean priv_add_new_check_pair (NiceAgent *agent, guint stream_id, Component *component, NiceCandidate *local, NiceCandidate *remote, NiceCheckState initial_state, gboolean use_candidate)
{ {
gboolean result = FALSE; gboolean result = FALSE;
......
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