diff options
author | LRN <lrn1986 at gmail dot com> | 2009-03-05 11:02:59 +0100 |
---|---|---|
committer | Wim Taymans <wim.taymans@collabora.co.uk> | 2009-03-05 11:02:59 +0100 |
commit | e13168bd4b7838b768f49561030de2bbadcb8621 (patch) | |
tree | a4cd6d01dc7d9cba6fbb070cd3a4cfdfe691dcc5 | |
parent | 5fd1bf613c0b3a09782fb4057de5498e977fbd9a (diff) |
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.
-rw-r--r-- | gst/gstpoll.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gst/gstpoll.c b/gst/gstpoll.c index 712cd5b374..bbb396ba91 100644 --- a/gst/gstpoll.c +++ b/gst/gstpoll.c @@ -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); |