Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libnice
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
libnice
Commits
be909aeb
Commit
be909aeb
authored
Mar 04, 2009
by
Youness Alaoui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add stream id and component id and set the agent properly to avoid a segfault
parent
7eb69faa
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
agent/component.h
agent/component.h
+2
-0
agent/conncheck.c
agent/conncheck.c
+4
-0
No files found.
agent/component.h
View file @
be909aeb
...
@@ -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
;
...
...
agent/conncheck.c
View file @
be909aeb
...
@@ -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
),
...
...
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