diff options
author | Alexey Yakovenko <wakeroid@gmail.com> | 2010-02-14 16:24:51 +0100 |
---|---|---|
committer | Alexey Yakovenko <wakeroid@gmail.com> | 2010-02-14 16:24:51 +0100 |
commit | 68e0176c1d054ab285d9f2bbaa958e50cf3a5e73 (patch) | |
tree | ba65ad2e30e5a7d28585b2d01ebffbe157501fab /playlist.c | |
parent | 4b11bd6042edb71ac3e64c5cbe9b76aa0f732f58 (diff) |
playlist refactoring WIP
Diffstat (limited to 'playlist.c')
-rw-r--r-- | playlist.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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); |