diff options
author | David Svensson Fors <davidsf@axis.com> | 2012-11-15 14:02:37 +0100 |
---|---|---|
committer | Wim Taymans <wim.taymans@collabora.co.uk> | 2012-11-20 11:30:37 +0100 |
commit | 0eeb4a5c733a42378a9909ded740ae9aeec84a80 (patch) | |
tree | 841c4043cd939cdfae201387e081b3a8e3872edc /gst/rtsp-server/rtsp-server.c | |
parent | 8a7197f078f90a873af335518e3df627ca78151c (diff) |
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
Diffstat (limited to 'gst/rtsp-server/rtsp-server.c')
-rw-r--r-- | gst/rtsp-server/rtsp-server.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gst/rtsp-server/rtsp-server.c b/gst/rtsp-server/rtsp-server.c index 6151c83..9f557ba 100644 --- a/gst/rtsp-server/rtsp-server.c +++ b/gst/rtsp-server/rtsp-server.c @@ -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); } |