rtsp-server: don't ref server socket if it is NULL

Fixes test_bind_already_in_use unit test again after commit 6a497440.

https://bugzilla.gnome.org/show_bug.cgi?id=686644
This commit is contained in:
Ognyan Tonchev 2012-10-22 16:09:24 +02:00 committed by Tim-Philipp Müller
parent 1240f98206
commit 78bde6fa3e

View file

@ -965,9 +965,9 @@ gst_rtsp_server_create_source (GstRTSPServer * server,
g_return_val_if_fail (GST_IS_RTSP_SERVER (server), NULL);
socket = gst_rtsp_server_create_socket (server, NULL, error);
server->socket = g_object_ref (socket);
if (socket == NULL)
goto no_socket;
server->socket = g_object_ref (socket);
/* create a watch for reads (new connections) and possible errors */
source = g_socket_create_source (socket, G_IO_IN |