diff --git a/src/player.c b/src/player.c index f4e5ed36..2eae34d2 100644 --- a/src/player.c +++ b/src/player.c @@ -1804,7 +1804,9 @@ player_playback_cb(int fd, short what, void *arg) uint64_t ticks; /* Acknowledge timer */ - read(fd, &ticks, sizeof(ticks)); + ret = read(fd, &ticks, sizeof(ticks)); + if (ret <= 0) + DPRINTF(E_LOG, L_PLAYER, "Error reading timer.\n"); #endif /* __linux__ */ /* Decide how many packets to send */