component: Set dummy callback from cancellable GSource
authorOlivier Crête <olivier.crete@collabora.com>
Fri, 28 Mar 2014 21:38:01 +0000 (17:38 -0400)
committerOlivier Crête <olivier.crete@collabora.com>
Sun, 30 Mar 2014 06:12:41 +0000 (02:12 -0400)
agent/component.c

index 3bee9b4..f369bf8 100644 (file)
@@ -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);