changeset 2964:629d5494c8f1

Ok, really fix the EOF stuff.
author William Pitcock <nenolod@atheme.org>
date Thu, 16 Oct 2008 14:53:09 -0500
parents 4c112fb7f9f5
children 6013ab159139
files src/xsf/plugin.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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;
 		}