mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
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.
This commit is contained in:
parent
89816312db
commit
0d095ed5ef
3 changed files with 7 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2004-07-09 Wim Taymans <wim@fluendo.com>
|
||||
|
||||
* examples/seeking/seek.c: (iterate):
|
||||
Don't consume all CPU in the idle loop.
|
||||
|
||||
2004-07-09 Wim Taymans <wim@fluendo.com>
|
||||
|
||||
* gst/mpegstream/gstmpegdemux.c: (gst_mpeg_demux_new_output_pad),
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue