projects
/
platform
/
upstream
/
gst-plugins-good.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
18d104e
)
Added EOS, add yield to avoid infinite loop
author
Wim Taymans
<wim.taymans@gmail.com>
Mon, 24 Dec 2001 12:29:33 +0000
(12:29 +0000)
committer
Wim Taymans
<wim.taymans@gmail.com>
Mon, 24 Dec 2001 12:29:33 +0000
(12:29 +0000)
Original commit message from CVS:
Added EOS, add yield to avoid infinite loop
ext/mikmod/gstmikmod.c
patch
|
blob
|
history
diff --git
a/ext/mikmod/gstmikmod.c
b/ext/mikmod/gstmikmod.c
index a8b6a345fc256b36c86603f432c6fff11ca70129..adca578b695ae705e4198d54f62d647dfeffc9d4 100644
(file)
--- a/
ext/mikmod/gstmikmod.c
+++ b/
ext/mikmod/gstmikmod.c
@@
-405,10
+405,16
@@
gst_mikmod_loop (GstElement *element)
));
do {
- if ( Player_Active() )
+ if ( Player_Active() )
{
drv_gst.Update();
-
- gst_element_yield (element);
+
+ gst_element_yield (element);
+ }
+ else {
+ gst_element_set_state (GST_ELEMENT (mikmod), GST_STATE_PAUSED);
+ gst_pad_push (mikmod->srcpad, gst_event_new (GST_EVENT_EOS));
+ }
+
}
while ( 1 );
}