mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-13 02:45:35 +00:00
pool: Fix compiler warning on mingw64
gstpoll.c: In function 'release_event': gstpoll.c:239:3: error: suggest parentheses around assignment used as truth value [-Werror=parentheses] if (status = WaitForSingleObject (set->wakeup_event, INFINITE)) { ^~ https://bugzilla.gnome.org/show_bug.cgi?id=774108
This commit is contained in:
parent
fe5102f4d3
commit
5571ad1260
1 changed files with 3 additions and 1 deletions
|
@ -236,7 +236,9 @@ release_event (GstPoll * set)
|
|||
DWORD status;
|
||||
SetLastError (0);
|
||||
errno = 0;
|
||||
if (status = WaitForSingleObject (set->wakeup_event, INFINITE)) {
|
||||
|
||||
status = WaitForSingleObject (set->wakeup_event, INFINITE);
|
||||
if (status) {
|
||||
const gchar *reason = "unknown";
|
||||
gchar msg[1024] = "<unknown>";
|
||||
switch (status) {
|
||||
|
|
Loading…
Reference in a new issue