mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
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:
parent
5fd1bf613c
commit
e13168bd4b
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue