server: start and stop multiple times

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
This commit is contained in:
David Svensson Fors 2012-11-15 14:02:37 +01:00 committed by Wim Taymans
parent 8a7197f078
commit 0eeb4a5c73

View 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);
}