playlist: use the "enum player_error" type
Don't assign the result of getPlayerError() to an integer.
This commit is contained in:
parent
6fd8c28d2e
commit
699b31178d
@ -914,7 +914,7 @@ void nextSongInPlaylist(void)
|
|||||||
void playPlaylistIfPlayerStopped(void)
|
void playPlaylistIfPlayerStopped(void)
|
||||||
{
|
{
|
||||||
if (getPlayerState() == PLAYER_STATE_STOP) {
|
if (getPlayerState() == PLAYER_STATE_STOP) {
|
||||||
int error = getPlayerError();
|
enum player_error error = getPlayerError();
|
||||||
|
|
||||||
if (error == PLAYER_ERROR_NOERROR)
|
if (error == PLAYER_ERROR_NOERROR)
|
||||||
playlist_errorCount = 0;
|
playlist_errorCount = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user