From bf6191b00825c4631312cf2446fd7b181abb7e1f Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Mon, 6 May 2013 17:27:27 +0200 Subject: Permit multiple HTTP errors in a row MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1) Make sure that multiple bad playlists in a row don’t result in a temporary ban 2) Ignore songs skipped because the playlist timed out after pausing for too long --- src/player.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/player.h') diff --git a/src/player.h b/src/player.h index d0eac22..d107e41 100644 --- a/src/player.h +++ b/src/player.h @@ -107,7 +107,7 @@ struct audioPlayer { WaitressHandle_t waith; }; -enum {PLAYER_RET_OK = 0, PLAYER_RET_ERR = 1}; +enum {PLAYER_RET_OK = 0, PLAYER_RET_HARDFAIL = 1, PLAYER_RET_SOFTFAIL = 2}; void *BarPlayerThread (void *data); unsigned int BarPlayerCalcScale (float); -- cgit v1.2.3