Commit be909aeb authored by Youness Alaoui's avatar Youness Alaoui

Add stream id and component id and set the agent properly to avoid a segfault

parent 7eb69faa
...@@ -64,6 +64,8 @@ struct _CandidatePairKeepalive ...@@ -64,6 +64,8 @@ struct _CandidatePairKeepalive
{ {
NiceAgent *agent; NiceAgent *agent;
GSource *tick_source; GSource *tick_source;
guint stream_id;
guint component_id;
StunTimer timer; StunTimer timer;
uint8_t stun_buffer[STUN_MAX_MESSAGE_SIZE]; uint8_t stun_buffer[STUN_MAX_MESSAGE_SIZE];
StunMessage stun_message; StunMessage stun_message;
......
...@@ -579,6 +579,10 @@ static gboolean priv_conn_keepalive_tick (gpointer pointer) ...@@ -579,6 +579,10 @@ static gboolean priv_conn_keepalive_tick (gpointer pointer)
p->keepalive.tick_source = NULL; p->keepalive.tick_source = NULL;
} }
p->keepalive.stream_id = stream->id;
p->keepalive.component_id = component->id;
p->keepalive.agent = agent;
p->keepalive.tick_source = p->keepalive.tick_source =
agent_timeout_add_with_context (p->keepalive.agent, agent_timeout_add_with_context (p->keepalive.agent,
stun_timer_remainder (&p->keepalive.timer), stun_timer_remainder (&p->keepalive.timer),
......
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