summaryrefslogtreecommitdiff
path: root/playlist.c
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-02-14 16:24:51 +0100
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-02-14 16:24:51 +0100
commit68e0176c1d054ab285d9f2bbaa958e50cf3a5e73 (patch)
treeba65ad2e30e5a7d28585b2d01ebffbe157501fab /playlist.c
parent4b11bd6042edb71ac3e64c5cbe9b76aa0f732f58 (diff)
playlist refactoring WIP
Diffstat (limited to 'playlist.c')
-rw-r--r--playlist.c10
1 files changed, 5 insertions, 5 deletions
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);