From 287d4d30a0bb8889e1b45b4008d6edbf97bdb0e5 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 9 Jul 2004 14:33:15 +0000 Subject: examples/seeking/seek.c: Don't consume all CPU in the idle loop. Original commit message from CVS: * examples/seeking/seek.c: (iterate): Don't consume all CPU in the idle loop. --- examples/seeking/seek.c | 1 + 1 file changed, 1 insertion(+) (limited to 'examples/seeking') diff --git a/examples/seeking/seek.c b/examples/seeking/seek.c index fed6b7f9..3cd64cdf 100644 --- a/examples/seeking/seek.c +++ b/examples/seeking/seek.c @@ -805,6 +805,7 @@ iterate (gpointer data) if (!GST_FLAG_IS_SET (GST_OBJECT (data), GST_BIN_SELF_SCHEDULABLE)) { res = gst_bin_iterate (GST_BIN (data)); } else { + g_usleep (500); res = gst_element_get_state (GST_ELEMENT (data)) == GST_STATE_PLAYING; } -- cgit v1.2.1