Fix rtsp client refcount management in TCP mode.
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Wed, 1 Apr 2009 00:01:46 +0000 (01:01 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Wed, 1 Apr 2009 00:23:32 +0000 (01:23 +0100)
Don't unref a client ref we never had. Fixes an unref
of an already-free client object after a client
teardown request for me.

gst/rtsp-server/rtsp-client.c

index 5711a99..49665e7 100644 (file)
@@ -313,7 +313,7 @@ static void
 unlink_stream (GstRTSPClient *client, GstRTSPSessionStream *stream)
 {
   gst_rtsp_session_stream_set_callbacks (stream, NULL,
-       NULL, client, g_object_unref);
+       NULL, NULL, NULL);
   client->streams = g_list_remove (client->streams, stream);
 }