From 68e0176c1d054ab285d9f2bbaa958e50cf3a5e73 Mon Sep 17 00:00:00 2001 From: Alexey Yakovenko Date: Sun, 14 Feb 2010 16:24:51 +0100 Subject: playlist refactoring WIP --- playlist.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'playlist.c') diff --git a/playlist.c b/playlist.c index 1c93c936..1a1f9211 100644 --- a/playlist.c +++ b/playlist.c @@ -52,8 +52,8 @@ #define PLAYLIST_MAJOR_VER 1 #define PLAYLIST_MINOR_VER 1 -#define trace(...) { fprintf(stderr, __VA_ARGS__); } -//#define trace(fmt,...) +//#define trace(...) { fprintf(stderr, __VA_ARGS__); } +#define trace(fmt,...) #define SKIP_BLANK_CUE_TRACKS 1 @@ -1281,7 +1281,7 @@ void pl_item_ref (playItem_t *it) { LOCK; it->_refc++; - printf ("+it %p: refc=%d: %s\n", it, it->_refc, it->fname); + trace ("+it %p: refc=%d: %s\n", it, it->_refc, it->fname); UNLOCK; } @@ -1307,9 +1307,9 @@ void pl_item_unref (playItem_t *it) { LOCK; it->_refc--; - printf ("-it %p: refc=%d: %s\n", it, it->_refc, it->fname); + trace ("-it %p: refc=%d: %s\n", it, it->_refc, it->fname); if (it->_refc < 0) { - fprintf (stderr, "\033[0;31mplaylist: bad refcount on item %p\033[37;0m\n", it); + trace ("\033[0;31mplaylist: bad refcount on item %p\033[37;0m\n", it); } if (it->_refc <= 0) { pl_item_free (it); -- cgit v1.2.3