server: start and stop multiple times
authorDavid Svensson Fors <davidsf@axis.com>
Thu, 15 Nov 2012 13:02:37 +0000 (14:02 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Tue, 20 Nov 2012 10:30:37 +0000 (11:30 +0100)
Stop listening on the RTSP port when the GSource is removed, so clients
can't connect and the server can be started again.

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=688395

gst/rtsp-server/rtsp-server.c

index 6151c83..9f557ba 100644 (file)
@@ -1076,6 +1076,8 @@ static void
 watch_destroyed (GstRTSPServer * server)
 {
   GST_DEBUG_OBJECT (server, "source destroyed");
+  g_object_unref (server->socket);
+  server->socket = NULL;
   g_object_unref (server);
 }