mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-04 05:22:30 +00:00
Added EOS, add yield to avoid infinite loop
Original commit message from CVS: Added EOS, add yield to avoid infinite loop
This commit is contained in:
parent
18d104e45a
commit
c3915007a7
1 changed files with 9 additions and 3 deletions
|
@ -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 );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue