summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>2011-02-03 15:17:13 +0100
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>2011-02-03 15:52:18 +0100
commit50d566d9ade049f8e42bb52add7cf1b9cba505df (patch)
tree7044f18df2b89e3de9a9e6cd95588d1e9d1d5412 /gst
parent609a75eae28c770372ef1464d1e03fadf03982ea (diff)
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.
Diffstat (limited to 'gst')
-rw-r--r--gst/gstpoll.c3
1 files changed, 3 insertions, 0 deletions
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;