Commit 576b6b79 authored by Philip Withnall's avatar Philip Withnall Committed by Olivier Crête

agent: Add some preconditions to public API

To try and avoid NULL NiceCandidates entering our internal state.
parent ff6d5fa0
......@@ -5052,6 +5052,11 @@ nice_agent_set_selected_remote_candidate (
g_return_val_if_fail (component_id != 0, FALSE);
g_return_val_if_fail (candidate != NULL, FALSE);
g_return_val_if_fail (NICE_IS_AGENT (agent), FALSE);
g_return_val_if_fail (stream_id != 0, FALSE);
g_return_val_if_fail (component_id != 0, FALSE);
g_return_val_if_fail (candidate != NULL, FALSE);
agent_lock();
/* step: check if the component exists*/
......
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