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
@ -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…
x
Reference in New Issue
Block a user