[farsight2/master] base: Use g_signal_connect_object to prevent races

Olivier Crête olivier.crete at collabora.co.uk
Sat Jul 25 18:36:21 PDT 2009


---
 gst-libs/gst/farsight/fs-base-conference.c |    4 ++--
 gst-libs/gst/farsight/fs-session.c         |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/gst-libs/gst/farsight/fs-base-conference.c b/gst-libs/gst/farsight/fs-base-conference.c
index d0310da..65b0cf4 100644
--- a/gst-libs/gst/farsight/fs-base-conference.c
+++ b/gst-libs/gst/farsight/fs-base-conference.c
@@ -143,8 +143,8 @@ fs_base_conference_new_session (FsConference *conf,
     return NULL;
 
   /* Let's catch all session errors and send them over the GstBus */
-  g_signal_connect (new_session, "error",
-      G_CALLBACK (fs_base_conference_error), base_conf);
+  g_signal_connect_object (new_session, "error",
+      G_CALLBACK (fs_base_conference_error), base_conf, 0);
 
   return new_session;
 }
diff --git a/gst-libs/gst/farsight/fs-session.c b/gst-libs/gst/farsight/fs-session.c
index 8a0163e..1db2a89 100644
--- a/gst-libs/gst/farsight/fs-session.c
+++ b/gst-libs/gst/farsight/fs-session.c
@@ -420,8 +420,8 @@ fs_session_new_stream (FsSession *session, FsParticipant *participant,
     return NULL;
 
   /* Let's catch all stream errors and forward them */
-  g_signal_connect (new_stream, "error",
-        G_CALLBACK (fs_session_error_forward), session);
+  g_signal_connect_object (new_stream, "error",
+      G_CALLBACK (fs_session_error_forward), session, 0);
 
   return new_stream;
 }
-- 
1.5.6.5



More information about the farsight-commits mailing list