# HG changeset patch # User nenolod # Date 1137214126 28800 # Node ID e36afef679e8a696dd0ed57efe8c32ba95c51812 # Parent d7d70779c074544c6a003a5639cedcc8916f9e2c [svn] timidity fixes... remove duplicated code provided by produce_audio() -_-. diff -r d7d70779c074 -r e36afef679e8 Plugins/Input/timidity/src/xmms-timidity.c --- a/Plugins/Input/timidity/src/xmms-timidity.c Fri Jan 13 20:03:07 2006 -0800 +++ b/Plugins/Input/timidity/src/xmms-timidity.c Fri Jan 13 20:48:46 2006 -0800 @@ -270,20 +270,12 @@ bytes_read, buffer, NULL); else xmmstimid_eof = TRUE; - while (xmmstimid_going && xmmstimid_seek_to == -1 && - (bytes_read == 0 || - xmmstimid_ip.output->buffer_free() < bytes_read)) - xmms_usleep(10000); - if (xmmstimid_seek_to != -1) { mid_song_seek(xmmstimid_song, xmmstimid_seek_to * 1000); xmmstimid_ip.output->flush(xmmstimid_seek_to * 1000); xmmstimid_seek_to = -1; bytes_read = 0; } - - if (xmmstimid_going && bytes_read != 0) - xmmstimid_ip.output->write_audio(buffer, bytes_read); } g_free(buffer);