From 50d566d9ade049f8e42bb52add7cf1b9cba505df Mon Sep 17 00:00:00 2001 From: Mark Nauwelaerts Date: Thu, 3 Feb 2011 15:17:13 +0100 Subject: 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. --- gst/gstpoll.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gst') diff --git a/gst/gstpoll.c b/gst/gstpoll.c index 5e8f6bd004..cbc3904d94 100644 --- a/gst/gstpoll.c +++ b/gst/gstpoll.c @@ -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; -- cgit v1.2.3