From ce1f1aea4203bec4906ce8ebc95cbbd66e1fea03 Mon Sep 17 00:00:00 2001 From: Youness Alaoui Date: Mon, 9 Mar 2009 15:35:39 -0400 Subject: [PATCH] no more need for media_after_tick, useless and doesn't help much --- agent/agent.c | 1 - agent/component.h | 2 -- agent/conncheck.c | 4 +--- 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/agent/agent.c b/agent/agent.c index 50c7849..c4755f9 100644 --- a/agent/agent.c +++ b/agent/agent.c @@ -1566,7 +1566,6 @@ nice_agent_send ( sock = component->selected_pair.local->sockptr; addr = &component->selected_pair.remote->addr; if (nice_socket_send (sock, addr, len, buf)) { - component->media_after_tick = TRUE; ret = len; } goto done; diff --git a/agent/component.h b/agent/component.h index 29fcc9c..8a02a99 100644 --- a/agent/component.h +++ b/agent/component.h @@ -100,8 +100,6 @@ struct _Component GList *turn_servers; /**< List of TURN servers */ CandidatePair selected_pair; /**< independent from checklists, see ICE 11.1. "Sending Media" (ID-19) */ - gboolean media_after_tick; /**< true if media received since last - keepalive tick */ NiceCandidate *restart_candidate; /**< for storing active remote candidate during a restart */ NiceAgentRecvFunc g_source_io_cb; /**< function called on io cb */ gpointer data; /**< data passed to the io function */ diff --git a/agent/conncheck.c b/agent/conncheck.c index b7acd8f..a31df39 100644 --- a/agent/conncheck.c +++ b/agent/conncheck.c @@ -521,8 +521,7 @@ static gboolean priv_conn_keepalive_tick (gpointer pointer) Stream *stream = i->data; for (j = stream->components; j; j = j->next) { Component *component = j->data; - if (component->selected_pair.local != NULL && - component->media_after_tick != TRUE) { + if (component->selected_pair.local != NULL) { CandidatePair *p = &component->selected_pair; struct sockaddr sockaddr; @@ -609,7 +608,6 @@ static gboolean priv_conn_keepalive_tick (gpointer pointer) ++errors; } } - component->media_after_tick = FALSE; } } -- 2.11.4.GIT