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.
This commit is contained in:
Wim Taymans 2009-06-11 11:27:47 +02:00
parent 5e4757eff6
commit a697d16c75

View file

@ -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;