Commit 0032a14f authored by Youness Alaoui's avatar Youness Alaoui

Fix compilation when gupnp-igd is not found

parent f8469e4b
...@@ -790,10 +790,14 @@ void agent_gathering_done (NiceAgent *agent) ...@@ -790,10 +790,14 @@ void agent_gathering_done (NiceAgent *agent)
} }
} }
#ifdef HAVE_GUPNP
if (agent->discovery_timer_source == NULL && if (agent->discovery_timer_source == NULL &&
agent->upnp_timer_source == NULL) { agent->upnp_timer_source == NULL) {
agent_signal_gathering_done (agent); agent_signal_gathering_done (agent);
} }
#else
agent_signal_gathering_done (agent);
#endif
} }
void agent_signal_gathering_done (NiceAgent *agent) void agent_signal_gathering_done (NiceAgent *agent)
...@@ -1413,9 +1417,9 @@ nice_agent_gather_candidates ( ...@@ -1413,9 +1417,9 @@ nice_agent_gather_candidates (
static void priv_free_upnp (NiceAgent *agent) static void priv_free_upnp (NiceAgent *agent)
{ {
#ifdef HAVE_GUPNP
GSList *i; GSList *i;
#ifdef HAVE_GUPNP
if (agent->upnp) { if (agent->upnp) {
g_object_unref (agent->upnp); g_object_unref (agent->upnp);
agent->upnp = NULL; agent->upnp = NULL;
......
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