From 67edb154e58a50fd78ca50be015931f89c93d30f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9D=B4=EB=AC=B8=ED=98=95?= Date: Thu, 27 Nov 2008 11:12:30 +0000 Subject: [PATCH] gst/gstpoll.c: Adds support for FD_CONNECT event (win32). See #562258. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Original commit message from CVS: Patch by: 이문형 * gst/gstpoll.c: (gst_poll_fd_ctl_write), (gst_poll_fd_has_error): Adds support for FD_CONNECT event (win32). See #562258. --- ChangeLog | 7 +++++++ gst/gstpoll.c | 6 ++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index f72718f44a..e4822ae6b9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-11-27 Wim Taymans + + Patch by: 이문형 + + * gst/gstpoll.c: (gst_poll_fd_ctl_write), (gst_poll_fd_has_error): + Adds support for FD_CONNECT event (win32). See #562258. + 2008-11-24 Stefan Kost * libs/gst/base/gstbasesink.c: diff --git a/gst/gstpoll.c b/gst/gstpoll.c index 4594a10b7d..a5a540e3cb 100644 --- a/gst/gstpoll.c +++ b/gst/gstpoll.c @@ -695,7 +695,8 @@ gst_poll_fd_ctl_write (GstPoll * set, GstPollFD * fd, gboolean active) else pfd->events &= ~POLLOUT; #else - gst_poll_update_winsock_event_mask (set, idx, FD_WRITE, active); + gst_poll_update_winsock_event_mask (set, idx, FD_WRITE | FD_CONNECT, + active); #endif } @@ -873,7 +874,8 @@ gst_poll_fd_has_error (const GstPoll * set, GstPollFD * fd) res = (wfd->events.iErrorCode[FD_CLOSE_BIT] != 0) || (wfd->events.iErrorCode[FD_READ_BIT] != 0) || (wfd->events.iErrorCode[FD_WRITE_BIT] != 0) || - (wfd->events.iErrorCode[FD_ACCEPT_BIT] != 0); + (wfd->events.iErrorCode[FD_ACCEPT_BIT] != 0) || + (wfd->events.iErrorCode[FD_CONNECT_BIT] != 0); #endif }