gst/gstpoll.c: Adds support for FD_CONNECT event (win32). See #562258.

Original commit message from CVS:
Patch by: 이문형 <iwings at gmail dot com>
* gst/gstpoll.c: (gst_poll_fd_ctl_write), (gst_poll_fd_has_error):
Adds support for FD_CONNECT event (win32). See #562258.
This commit is contained in:
이문형 2008-11-27 11:12:30 +00:00 committed by Wim Taymans
parent 95e825900f
commit 67edb154e5
2 changed files with 11 additions and 2 deletions

View file

@ -1,3 +1,10 @@
2008-11-27 Wim Taymans <wim.taymans@collabora.co.uk>
Patch by: 이문형 <iwings at gmail dot com>
* 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 <ensonic@users.sf.net>
* libs/gst/base/gstbasesink.c:

View file

@ -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
}