diff options
Diffstat (limited to '')
-rw-r--r-- | src/player.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/player.c b/src/player.c index a9ab8fe1d..b73652bb6 100644 --- a/src/player.c +++ b/src/player.c @@ -139,6 +139,10 @@ int playerInit() { pc->queueLockState = PLAYER_QUEUE_UNLOCKED; pc->unlockQueue = 0; } + else if(pc->cycleLogFiles) { + myfprintfCloseAndOpenLogFile(); + pc->cycleLogFiles = 0; + } else my_usleep(10000); } @@ -474,4 +478,13 @@ int getPlayerChannels() { return pc->channels; } + +void playerCycleLogFiles() { + PlayerControl * pc = &(getPlayerData()->playerControl); + DecoderControl * dc = &(getPlayerData()->decoderControl); + + pc->cycleLogFiles = 1; + dc->cycleLogFiles = 1; +} + /* vim:set shiftwidth=4 tabstop=8 expandtab: */ |