[farsight2/master] Set priority on our idle callbacks to default (just in case)

Olivier Crête olivier.crete at collabora.co.uk
Tue Dec 23 15:25:15 PST 2008


---
 gst-libs/ext/fsupnp/fs-upnp-simple-igd-thread.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/gst-libs/ext/fsupnp/fs-upnp-simple-igd-thread.c b/gst-libs/ext/fsupnp/fs-upnp-simple-igd-thread.c
index c01104b..3367720 100644
--- a/gst-libs/ext/fsupnp/fs-upnp-simple-igd-thread.c
+++ b/gst-libs/ext/fsupnp/fs-upnp-simple-igd-thread.c
@@ -232,6 +232,7 @@ fs_upnp_simple_igd_thread_add_port (FsUpnpSimpleIgd *self,
   g_object_add_weak_pointer (G_OBJECT (self), (gpointer*) &data->self);
   g_source_set_callback (source, add_port_idle_func, data,
       free_add_remove_port_data);
+  g_source_set_priority (source, G_PRIORITY_DEFAULT);
   g_source_attach (source, realself->priv->context);
   g_main_context_wakeup (realself->priv->context);
 }
@@ -250,9 +251,10 @@ fs_upnp_simple_igd_thread_remove_port (FsUpnpSimpleIgd *self,
   data->external_port = external_port;
 
   source = g_idle_source_new ();
+  g_object_add_weak_pointer (G_OBJECT (self), (gpointer*) &data->self);
   g_source_set_callback (source, remove_port_idle_func, data,
       free_add_remove_port_data);
-  g_object_add_weak_pointer (G_OBJECT (self), (gpointer*) &data->self);
+  g_source_set_priority (source, G_PRIORITY_DEFAULT);
   g_source_attach (source, realself->priv->context);
   g_main_context_wakeup (realself->priv->context);
 }
-- 
1.5.6.5




More information about the farsight-commits mailing list