Don't prepare the next track if the Transport is in the stopped state.

This commit is contained in:
casey 2016-06-25 13:09:45 -07:00
parent 19ccad6001
commit 51e8fc943d

View File

@ -141,7 +141,9 @@ void PlaybackService::ProcessMessage(IMessage &message) {
}
}
else if (message.Type() == MESSAGE_PREPARE_NEXT_TRACK) {
this->PrepareNextTrack();
if (transport.GetPlaybackState() != ITransport::PlaybackStopped) {
this->PrepareNextTrack();
}
}
}