Author: titmuss
Date: Thu Nov  6 06:02:34 2008
New Revision: 3298

URL: http://svn.slimdevices.com?rev=3298&root=Jive&view=rev
Log:
Bug: N/A
Description:
Fix a crasher.
Fix turning off debug.


Modified:
    7.3/trunk/squeezeplay/src/squeezeplay/src/audio/streambuf.c
    7.3/trunk/squeezeplay/src/squeezeplay/src/debug.h

Modified: 7.3/trunk/squeezeplay/src/squeezeplay/src/audio/streambuf.c
URL: 
http://svn.slimdevices.com/7.3/trunk/squeezeplay/src/squeezeplay/src/audio/streambuf.c?rev=3298&root=Jive&r1=3297&r2=3298&view=diff
==============================================================================
--- 7.3/trunk/squeezeplay/src/squeezeplay/src/audio/streambuf.c (original)
+++ 7.3/trunk/squeezeplay/src/squeezeplay/src/audio/streambuf.c Thu Nov  6 
06:02:34 2008
@@ -441,6 +441,8 @@
 
        if (stream->body) {
                free(stream->body);
+               stream->body = NULL;
+               stream->body_len = 0;
        }
 
        if (stream->fd) {

Modified: 7.3/trunk/squeezeplay/src/squeezeplay/src/debug.h
URL: 
http://svn.slimdevices.com/7.3/trunk/squeezeplay/src/squeezeplay/src/debug.h?rev=3298&root=Jive&r1=3297&r2=3298&view=diff
==============================================================================
--- 7.3/trunk/squeezeplay/src/squeezeplay/src/debug.h (original)
+++ 7.3/trunk/squeezeplay/src/squeezeplay/src/debug.h Thu Nov  6 06:02:34 2008
@@ -20,25 +20,25 @@
 
 #define DEBUG_ERROR(fmt, ...) fprintf(stderr, "%s:%d ERROR " fmt "\n", 
__FILE__, __LINE__, ##__VA_ARGS__);
 
-#ifdef RUNTIME_DEBUG
+#if RUNTIME_DEBUG
 #define DEBUG_TRACE(fmt, ...) fprintf(stderr, "%s:%d DEBUG " fmt "\n", 
__FILE__, __LINE__, ##__VA_ARGS__);
 #else
 #define DEBUG_TRACE(fmt, ...)
 #endif
 
-#ifdef RUNTIME_DEBUG_GARBAGE
+#if RUNTIME_DEBUG_GARBAGE
 #define DEBUG_GARBAGE(fmt, ...) fprintf(stderr, "%s:%d DEBUG " fmt "\n", 
__FILE__, __LINE__, ##__VA_ARGS__);
 #else
 #define DEBUG_GARBAGE(fmt, ...)
 #endif
 
-#ifdef RUNTIME_DEBUG_VERBOSE
+#if RUNTIME_DEBUG_VERBOSE
 #define DEBUG_VERBOSE(fmt, ...) fprintf(stderr, "%s:%d VERBOSE " fmt "\n", 
__FILE__, __LINE__, ##__VA_ARGS__);
 #else
 #define DEBUG_VERBOSE(fmt, ...)
 #endif
 
-#ifdef RUNTIME_DEBUG_DRAW
+#if RUNTIME_DEBUG_DRAW
 #define DEBUG_DRAW(fmt, ...) fprintf(stderr, "%s:%d DRAW " fmt "\n", __FILE__, 
__LINE__, ##__VA_ARGS__);
 #else
 #define DEBUG_DRAW(fmt, ...)

_______________________________________________
Jive-checkins mailing list
[email protected]
http://lists.slimdevices.com/cgi-bin/mailman/listinfo/jive-checkins

Reply via email to