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
194952e8
Commit
194952e8
authored
Jul 20, 2010
by
Olivier Crête
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
agent: Return an error instead of aborting if there was no host candidate
parent
93756ed6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
agent/agent.c
agent/agent.c
+5
-3
agent/agent.h
agent/agent.h
+3
-1
No files found.
agent/agent.c
View file @
194952e8
...
@@ -1662,7 +1662,7 @@ static void _upnp_error_mapping_port (GUPnPSimpleIgd *self, GError *error,
...
@@ -1662,7 +1662,7 @@ static void _upnp_error_mapping_port (GUPnPSimpleIgd *self, GError *error,
#endif
#endif
NICEAPI_EXPORT
void
NICEAPI_EXPORT
gboolean
nice_agent_gather_candidates
(
nice_agent_gather_candidates
(
NiceAgent
*
agent
,
NiceAgent
*
agent
,
guint
stream_id
)
guint
stream_id
)
...
@@ -1747,8 +1747,8 @@ nice_agent_gather_candidates (
...
@@ -1747,8 +1747,8 @@ nice_agent_gather_candidates (
n
+
1
,
addr
);
n
+
1
,
addr
);
if
(
!
host_candidate
)
{
if
(
!
host_candidate
)
{
g_
error
(
"No host candidate??"
);
g_
warning
(
"No host candidate??"
);
break
;
return
FALSE
;
}
}
#ifdef HAVE_GUPNP
#ifdef HAVE_GUPNP
...
@@ -1809,6 +1809,8 @@ nice_agent_gather_candidates (
...
@@ -1809,6 +1809,8 @@ nice_agent_gather_candidates (
done:
done:
agent_unlock
();
agent_unlock
();
return
TRUE
;
}
}
static
void
priv_free_upnp
(
NiceAgent
*
agent
)
static
void
priv_free_upnp
(
NiceAgent
*
agent
)
...
...
agent/agent.h
View file @
194952e8
...
@@ -385,6 +385,8 @@ gboolean nice_agent_set_relay_info(
...
@@ -385,6 +385,8 @@ gboolean nice_agent_set_relay_info(
* Start the candidate gathering process.
* Start the candidate gathering process.
* Once done, #NiceAgent::candidate-gathering-done is called for the stream
* Once done, #NiceAgent::candidate-gathering-done is called for the stream
*
*
* Returns: %FALSE if there were no local addresses and they couldn't be discovered. In this case, call nice_agent_add_local_address() first.
*
* See also: nice_agent_add_local_address()
* See also: nice_agent_add_local_address()
<note>
<note>
<para>
<para>
...
@@ -397,7 +399,7 @@ gboolean nice_agent_set_relay_info(
...
@@ -397,7 +399,7 @@ gboolean nice_agent_set_relay_info(
</para>
</para>
</note>
</note>
*/
*/
void
gboolean
nice_agent_gather_candidates
(
nice_agent_gather_candidates
(
NiceAgent
*
agent
,
NiceAgent
*
agent
,
guint
stream_id
);
guint
stream_id
);
...
...
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