Reflect playback status in log correctly

CQTexperiment
Dzmitry Neviadomski 2021-02-07 00:39:19 +03:00
parent 864c56a408
commit e313cdac14
1 changed files with 12 additions and 2 deletions

View File

@ -582,14 +582,24 @@ NSDictionary * makeRGInfo(PlaylistEntry *pe)
} }
if (status == CogStatusStopped) { if (status == CogStatusStopped) {
DLog(@"DONE!");
[playlistController setCurrentEntry:nil]; [playlistController setCurrentEntry:nil];
[self setSeekable:NO]; // the player stopped, disable the slider [self setSeekable:NO]; // the player stopped, disable the slider
} }
else { else {
DLog(@"PLAYING!");
[self setSeekable:YES]; [self setSeekable:YES];
} }
switch (status) {
case CogStatusPlaying:
DLog(@"PLAYING!");
break;
case CogStatusPaused:
DLog(@"PAUSED!");
break;
default:
DLog(@"STOPED!");
break;
}
if (status == CogStatusStopped) { if (status == CogStatusStopped) {
status = CogStatusStopping; status = CogStatusStopping;