rtsp: fix connection

This commit is contained in:
Wim Taymans 2012-02-20 17:44:59 +01:00
parent bb19c41081
commit 26f63027a6

View file

@ -444,12 +444,14 @@ do_connect (const gchar * ip, guint16 port, GSocket ** socket_out,
} }
g_socket_set_timeout (socket, 0); g_socket_set_timeout (socket, 0);
if (g_socket_check_connect_result (socket, &err)) if (!g_socket_check_connect_result (socket, &err))
goto sys_error; goto sys_error;
done: done:
g_object_unref (saddr); g_object_unref (saddr);
*socket_out = socket;
return GST_RTSP_OK; return GST_RTSP_OK;
/* ERRORS */ /* ERRORS */