poll: trigger rebuild setup in _new

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.
This commit is contained in:
Mark Nauwelaerts 2011-02-03 15:17:13 +01:00
parent 609a75eae2
commit 50d566d9ad

View 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;