mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 08:17:01 +00:00
rtsp: fix connection
This commit is contained in:
parent
bb19c41081
commit
26f63027a6
1 changed files with 3 additions and 1 deletions
|
@ -444,12 +444,14 @@ do_connect (const gchar * ip, guint16 port, GSocket ** socket_out,
|
|||
}
|
||||
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;
|
||||
|
||||
done:
|
||||
g_object_unref (saddr);
|
||||
|
||||
*socket_out = socket;
|
||||
|
||||
return GST_RTSP_OK;
|
||||
|
||||
/* ERRORS */
|
||||
|
|
Loading…
Reference in a new issue