Fix rtsp client refcount management in TCP mode.

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.
This commit is contained in:
Tim-Philipp Müller 2009-04-01 01:01:46 +01:00
parent 8f16b1504e
commit 0b8ffbbb5c

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