mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 16:26:39 +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);
|
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 */
|
||||||
|
|
Loading…
Reference in a new issue