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:
Victor Toso 2016-11-08 16:58:53 +01:00 committed by Tim-Philipp Müller
parent ca31500eb9
commit 04b7010308

View file

@ -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) {