From c3e24a0d9afabf83967d60e28313ca28d0fdc62f Mon Sep 17 00:00:00 2001 From: Julien BLACHE Date: Sun, 21 Nov 2010 11:59:45 +0100 Subject: [PATCH] Hide get_pos() debug messages behind DEBUG_SYNC --- src/player.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/player.c b/src/player.c index 4bcd9928..0e74eae5 100644 --- a/src/player.c +++ b/src/player.c @@ -273,7 +273,9 @@ player_get_current_pos_clock(uint64_t *pos, struct timespec *ts, int commit) pb_pos_stamp.tv_sec = ts->tv_sec; pb_pos_stamp.tv_nsec = ts->tv_nsec; +#ifdef DEBUG_SYNC DPRINTF(E_DBG, L_PLAYER, "Pos: %" PRIu64 " (clock)\n", *pos); +#endif } return 0; @@ -301,7 +303,9 @@ player_get_current_pos_laudio(uint64_t *pos, struct timespec *ts, int commit) pb_pos_stamp.tv_sec = ts->tv_sec; pb_pos_stamp.tv_nsec = ts->tv_nsec; +#ifdef DEBUG_SYNC DPRINTF(E_DBG, L_PLAYER, "Pos: %" PRIu64 " (laudio)\n", *pos); +#endif } return 0;