poll: trigger rebuild setup in _new
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Thu, 3 Feb 2011 14:17:13 +0000 (15:17 +0100)
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Thu, 3 Feb 2011 14:52:18 +0000 (15:52 +0100)
Failing to do so in the Windows case (implicitly triggered otherwise)
would have a subsequent _wait return immediately leading to high CPU
usage timeout loops.

Fixes #640675.

gst/gstpoll.c

index 5e8f6bd004a58838c18fb6d3ca3ff4514c94272d..cbc3904d944e22a13348a8c5dcff2d529ed0997e 100644 (file)
@@ -582,6 +582,9 @@ gst_poll_new (gboolean controllable)
   nset->wakeup_event = CreateEvent (NULL, TRUE, FALSE, NULL);
 #endif
 
+  /* ensure (re)build, though already sneakily set in non-windows case */
+  MARK_REBUILD (nset);
+
   nset->controllable = controllable;
 
   return nset;