summaryrefslogtreecommitdiffstats
path: root/examples/seeking
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@gmail.com>2004-07-09 14:33:15 +0000
committerWim Taymans <wim.taymans@gmail.com>2004-07-09 14:33:15 +0000
commit287d4d30a0bb8889e1b45b4008d6edbf97bdb0e5 (patch)
tree5942b060967c43721d337c048da0fb95c3dd7470 /examples/seeking
parentfd996ff883537111ef31445989d2d007ec6dfdfb (diff)
downloadgst-plugins-bad-287d4d30a0bb8889e1b45b4008d6edbf97bdb0e5.tar.gz
gst-plugins-bad-287d4d30a0bb8889e1b45b4008d6edbf97bdb0e5.tar.bz2
gst-plugins-bad-287d4d30a0bb8889e1b45b4008d6edbf97bdb0e5.zip
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.
Diffstat (limited to 'examples/seeking')
-rw-r--r--examples/seeking/seek.c1
1 files changed, 1 insertions, 0 deletions
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;
}