[gst-cvs] gst-rtsp-server: client: use g_source_destroy()

Wim Taymans wtay at kemper.freedesktop.org
Thu Jun 11 02:28:34 PDT 2009


Module: gst-rtsp-server
Branch: master
Commit: a697d16c75ffc24077f0f8e9f05847011c852cf7
URL:    http://cgit.freedesktop.org/gstreamer/gst-rtsp-server/commit/?id=a697d16c75ffc24077f0f8e9f05847011c852cf7

Author: Wim Taymans <wim.taymans at collabora.co.uk>
Date:   Thu Jun 11 11:27:47 2009 +0200

client: use g_source_destroy()

We need to use g_source_destroy() because we might have added the source to a
different main context than the default one.

---

 gst/rtsp-server/rtsp-client.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/gst/rtsp-server/rtsp-client.c b/gst/rtsp-server/rtsp-client.c
index 4d245b7..e12d425 100644
--- a/gst/rtsp-server/rtsp-client.c
+++ b/gst/rtsp-server/rtsp-client.c
@@ -1411,7 +1411,8 @@ tunnel_complete (GstRTSPWatch * watch, gpointer user_data)
   g_object_unref (oclient);
 
   /* we don't need this watch anymore */
-  g_source_remove (client->watchid);
+  g_source_destroy ((GSource *) client->watch);
+  client->watchid = 0;
 
   return GST_RTSP_OK;
 





More information about the Gstreamer-commits mailing list