Don't destroy the client watch while dispatching. The rtsp watch is
automatically destroyed after the rtsp watch function closed() has
been called.
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=685220
GST_INFO ("finalize client %p", client);
+ if (client->watchid)
+ g_source_destroy ((GSource *) client->watch);
+
client_cleanup_sessions (client);
gst_rtsp_connection_free (client->connection);
}
gst_rtsp_connection_close (client->connection);
- if (client->watchid) {
- g_source_destroy ((GSource *) client->watch);
- client->watchid = 0;
- client->watch = NULL;
- }
}
static gboolean
gst_rtsp_watch_reset (oclient->watch);
g_object_unref (oclient);
- /* we don't need this watch anymore */
- g_source_destroy ((GSource *) client->watch);
- client->watchid = 0;
- client->watch = NULL;
-
return GST_RTSP_OK;
/* ERRORS */