diff src/xsf/plugin.c @ 2964:629d5494c8f1

Ok, really fix the EOF stuff.
author William Pitcock <nenolod@atheme.org>
date Thu, 16 Oct 2008 14:53:09 -0500
parents 89d29615390d
children 6013ab159139
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;
 		}