Reflect playback status in log correctly
parent
864c56a408
commit
e313cdac14
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue