changeset 299:9ddce00a8653

Fixes.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 25 Dec 2004 20:42:01 +0000
parents 5db529b397bd
children a05bb36f6873
files src/xmms-sid.c
diffstat 1 files changed, 16 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/xmms-sid.c	Sat Dec 25 18:58:05 2004 +0000
+++ b/src/xmms-sid.c	Sat Dec 25 20:42:01 2004 +0000
@@ -102,11 +102,24 @@
 {
  va_list ap;
  fprintf(stderr, "XMMS-SID: ");
- va_start(ap);
+ va_start(ap, fmt);
  vfprintf(stderr, fmt, ap);
  va_end(ap); 
 }
 
+#ifndef DEBUG_NP
+void XSDEBUG(const char *fmt, ...)
+{
+#ifdef DEBUG
+ va_list ap;
+ fprintf(stderr, "XSDEBUG: ");
+ va_start(ap, fmt);
+ vfprintf(stderr, fmt, ap);
+ va_end(ap); 
+#endif
+}
+#endif
+
 /*
  * Initialization functions
  */
@@ -487,7 +500,7 @@
 		{
 		if (xs_cfg.playMaxTimeUnknown)
 			{
-			if ((songLength == -1) &&
+			if ((songLength < 0) &&
 				(xs_plugin_ip.output->output_time() >= (xs_cfg.playMaxTime * 1000)))
 				myStatus.isPlaying = FALSE;
 			} else {
@@ -496,7 +509,7 @@
 			}
 		}
 
-	if (songLength > 0)
+	if (songLength >= 0)
 		{
 		if (xs_plugin_ip.output->output_time() >= (songLength * 1000))
 			myStatus.isPlaying = FALSE;