From e313cdac1497ddd0b1897bc851869b0c799bb2f9 Mon Sep 17 00:00:00 2001 From: Dzmitry Neviadomski Date: Sun, 7 Feb 2021 00:39:19 +0300 Subject: [PATCH] Reflect playback status in log correctly --- Application/PlaybackController.m | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/Application/PlaybackController.m b/Application/PlaybackController.m index 5a2482334..3e4ab90a0 100644 --- a/Application/PlaybackController.m +++ b/Application/PlaybackController.m @@ -582,14 +582,24 @@ NSDictionary * makeRGInfo(PlaylistEntry *pe) } if (status == CogStatusStopped) { - DLog(@"DONE!"); [playlistController setCurrentEntry:nil]; [self setSeekable:NO]; // the player stopped, disable the slider } else { - DLog(@"PLAYING!"); [self setSeekable:YES]; } + switch (status) { + case CogStatusPlaying: + DLog(@"PLAYING!"); + break; + case CogStatusPaused: + DLog(@"PAUSED!"); + break; + + default: + DLog(@"STOPED!"); + break; + } if (status == CogStatusStopped) { status = CogStatusStopping;