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:
Wim Taymans 2001-12-24 12:29:33 +00:00
parent 18d104e45a
commit c3915007a7

View file

@ -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 );
}