summaryrefslogtreecommitdiff
path: root/src/decode.c
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-04-15 05:07:04 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-04-15 05:07:04 +0000
commit7f29bb1a8d2eb5edc4e3ea50223370dd4ba4a96c (patch)
tree8d7850f7f6d786d8f4e7dfab0e4695e3ffef2938 /src/decode.c
parentdf3af7d4f121be6264c0ce307f4a75e844d7282c (diff)
log cycling and a few cleanups
git-svn-id: https://svn.musicpd.org/mpd/trunk@772 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/decode.c')
-rw-r--r--src/decode.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/decode.c b/src/decode.c
index baea58e4b..fc0bd84af 100644
--- a/src/decode.c
+++ b/src/decode.c
@@ -174,6 +174,10 @@ void decodeSeek(PlayerControl * pc, AudioFormat * af, DecoderControl * dc,
}
#define processDecodeInput() \
+ if(pc->cycleLogFiles) { \
+ myfprintfCloseAndOpenLogFile(); \
+ pc->cycleLogFiles = 0; \
+ } \
if(pc->lockQueue) { \
pc->queueLockState = PLAYER_QUEUE_LOCKED; \
pc->lockQueue = 0; \
@@ -277,6 +281,10 @@ int decoderInit(PlayerControl * pc, Buffer * cb, AudioFormat *af,
dc->stop = 0;
}
else if(dc->seek) dc->start = 1;
+ if(dc->cycleLogFiles) {
+ myfprintfCloseAndOpenLogFile();
+ dc->cycleLogFiles = 0;
+ }
else my_usleep(10000);
}