GstPoll: set the return value on windows

Make sure that the return value of the functions _read/_write_control()
return the actual result instead of always FALSE on windows.
Fixes #574211.
This commit is contained in:
LRN 2009-03-05 11:02:59 +01:00 committed by Wim Taymans
parent 5fd1bf613c
commit e13168bd4b

View file

@ -1452,7 +1452,7 @@ gst_poll_write_control (GstPoll * set)
SEND_COMMAND (set, GST_POLL_CMD_WAKEUP, result);
res = (result > 0);
#else
SetEvent (set->wakeup_event);
res = SetEvent (set->wakeup_event);
#endif
}
g_mutex_unlock (set->lock);
@ -1488,7 +1488,7 @@ gst_poll_read_control (GstPoll * set)
READ_COMMAND (set, cmd, result);
res = (result > 0);
#else
ResetEvent (set->wakeup_event);
res = ResetEvent (set->wakeup_event);
#endif
}
g_mutex_unlock (set->lock);