summaryrefslogtreecommitdiff
path: root/agent
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.com>2014-03-28 17:38:01 -0400
committerOlivier CrĂȘte <olivier.crete@collabora.com>2014-03-30 02:12:41 -0400
commit5454a886248ebe4f5b456ad0cb826eb71b905e16 (patch)
treed6b989b01d3584d63d9fe25dd2f499ac2d3ec70a /agent
parent2979fcc8afb9a145b03e17453eb0ece76efc6cab (diff)
downloadlibnice-5454a886248ebe4f5b456ad0cb826eb71b905e16.tar.gz
component: Set dummy callback from cancellable GSource
Diffstat (limited to 'agent')
-rw-r--r--agent/component.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/agent/component.c b/agent/component.c
index 3bee9b4..f369bf8 100644
--- a/agent/component.c
+++ b/agent/component.c
@@ -129,6 +129,7 @@ component_new (guint id, NiceAgent *agent, Stream *stream)
component->own_ctx = g_main_context_new ();
component->stop_cancellable = g_cancellable_new ();
src = g_cancellable_source_new (component->stop_cancellable);
+ g_source_set_dummy_callback (src);
g_source_attach (src, component->own_ctx);
g_source_unref (src);
component->ctx = g_main_context_ref (component->own_ctx);