summaryrefslogtreecommitdiff
path: root/agent/component.c
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.com>2020-05-05 20:03:03 -0400
committerOlivier CrĂȘte <olivier.crete@collabora.com>2020-05-05 20:04:00 -0400
commit1da0537b3b4b323de5d67c90ff2829eb01f10a02 (patch)
treef67e989194c92d61165b5c802d95e960463e7618 /agent/component.c
parentd6317167a169c647ae35a365e268d1716bc9ceb4 (diff)
downloadlibnice-1da0537b3b4b323de5d67c90ff2829eb01f10a02.tar.gz
Use g_assert_cmp.int() to get better debug logs on crash
Diffstat (limited to 'agent/component.c')
-rw-r--r--agent/component.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/agent/component.c b/agent/component.c
index 5561aaf..27d6218 100644
--- a/agent/component.c
+++ b/agent/component.c
@@ -944,8 +944,8 @@ nice_component_emit_io_callback (NiceAgent *agent, NiceComponent *component,
return;
g_assert (NICE_IS_AGENT (agent));
- g_assert (stream_id > 0);
- g_assert (component_id > 0);
+ g_assert_cmpuint (stream_id, >, 0);
+ g_assert_cmpuint (component_id, >, 0);
g_assert (io_callback != NULL);
/* Only allocate a closure if the callback is being deferred to an idle