[spotify] Fix return of playback_eot if spotify returns an error

This commit is contained in:
chme 2016-08-06 06:26:38 +02:00
parent 09e35abb83
commit 21d2c95eeb

View File

@ -1068,7 +1068,8 @@ playback_eot(void *arg, int *retval)
if (SP_ERROR_OK != err)
{
DPRINTF(E_LOG, L_SPOTIFY, "Playback end of track failed: %s\n", fptr_sp_error_message(err));
return -1;
*retval = -1;
return COMMAND_END;
}
g_state = SPOTIFY_STATE_STOPPING;