# HG changeset patch # User William Pitcock # Date 1224186789 18000 # Node ID 629d5494c8f1a9d3529e5b513c8f03e19b272aea # Parent 4c112fb7f9f566dcf359ed5af032557edd08092c Ok, really fix the EOF stuff. diff -r 4c112fb7f9f5 -r 629d5494c8f1 src/xsf/plugin.c --- a/src/xsf/plugin.c Thu Oct 16 14:48:21 2008 -0500 +++ b/src/xsf/plugin.c Thu Oct 16 14:53:09 2008 -0500 @@ -135,12 +135,12 @@ for (;;) { - while (data->playing && !seek) + while (data->playing && !seek && !data->eof) { xsf_gen(samples, seglen); xsf_update(samples, seglen * 4, data); - if (data->output->written_time() > (length / 1000)) + if (data->output->output_time() > length) data->eof = TRUE; }