# HG changeset patch # User Yoshiki Yazawa # Date 1184494932 -32400 # Node ID d73eed18f3f408af137e9f209183426416acebad # Parent 0e160bafce1c4d3c6a13d0881a7c429cb2e9000c make tta decode easy to be interrupted. diff -r 0e160bafce1c -r d73eed18f3f4 src/tta/libtta.c --- a/src/tta/libtta.c Sun Jul 15 19:06:04 2007 +0900 +++ b/src/tta/libtta.c Sun Jul 15 19:22:12 2007 +0900 @@ -235,11 +235,17 @@ playback->output->flush (seek_position * SEEK_STEP); seek_position = -1; } + if(!playing) + goto DONE; } playback->output->buffer_free (); playback->output->buffer_free (); - xmms_usleep(10000); + while (playback->output->buffer_playing()) { + xmms_usleep(10000); + if(!playing) + goto DONE; + } } DONE: