gst-libs/gst/rtsp/gstrtspconnection.c: A successful gst_poll_wait() doesn't always mean successful connect() on

Original commit message from CVS:
Patch by: 이문형 <iwings at gmail dot com>
* gst-libs/gst/rtsp/gstrtspconnection.c:
(gst_rtsp_connection_connect):
A successful gst_poll_wait() doesn't always mean successful connect() on
Windows.  We should check errors by calling gst_poll_fd_has_error().
See #561924.
This commit is contained in:
이문형 2008-11-27 11:16:44 +00:00 committed by Wim Taymans
parent ecf6fe6455
commit d80a5c9dbc
2 changed files with 14 additions and 0 deletions

View file

@ -1,3 +1,13 @@
2008-11-27 Wim Taymans <wim.taymans@collabora.co.uk>
Patch by: 이문형 <iwings at gmail dot com>
* gst-libs/gst/rtsp/gstrtspconnection.c:
(gst_rtsp_connection_connect):
A successful gst_poll_wait() doesn't always mean successful connect() on
Windows. We should check errors by calling gst_poll_fd_has_error().
See #561924.
2008-11-25 Wim Taymans <wim.taymans@collabora.co.uk> 2008-11-25 Wim Taymans <wim.taymans@collabora.co.uk>
* gst-libs/gst/rtp/gstrtcpbuffer.c: * gst-libs/gst/rtp/gstrtcpbuffer.c:

View file

@ -287,6 +287,10 @@ gst_rtsp_connection_connect (GstRTSPConnection * conn, GTimeVal * timeout)
else if (retval == -1) else if (retval == -1)
goto sys_error; goto sys_error;
/* we can still have an error connecting on windows */
if (gst_poll_fd_has_error (conn->fdset, &conn->fd))
goto sys_error;
gst_poll_fd_ignored (conn->fdset, &conn->fd); gst_poll_fd_ignored (conn->fdset, &conn->fd);
done: done: