# HG changeset patch # User Matti Hamalainen # Date 1104007321 0 # Node ID 9ddce00a865326d9fef204e3a426f9cfad75c512 # Parent 5db529b397bdf059d90378d0576a4e9e75dc7f55 Fixes. diff -r 5db529b397bd -r 9ddce00a8653 src/xmms-sid.c --- 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;