From a697d16c75ffc24077f0f8e9f05847011c852cf7 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 11 Jun 2009 11:27:47 +0200 Subject: [PATCH] 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 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.7.4