diff options
author | Lars-Dominik Braun <PromyLOPh@lavabit.com> | 2009-05-22 21:45:58 +0200 |
---|---|---|
committer | Lars-Dominik Braun <PromyLOPh@lavabit.com> | 2009-05-22 21:47:37 +0200 |
commit | 38eafbf8bf2aaae998aae3801350cdc437fd9cd2 (patch) | |
tree | efaa8749ad7268c7d4128736d9c0db458ac4bd0d /src | |
parent | a3a12a524c41f45d9cd9ebaa94cb22dc1456e6b1 (diff) | |
download | pianobar-windows-38eafbf8bf2aaae998aae3801350cdc437fd9cd2.tar.gz pianobar-windows-38eafbf8bf2aaae998aae3801350cdc437fd9cd2.tar.bz2 pianobar-windows-38eafbf8bf2aaae998aae3801350cdc437fd9cd2.zip |
waitress: Add _RET_READ_ERR, retry on read error in player
Enhances commit 279f3ba93b729684e54300352c59523bd05e54bc
Diffstat (limited to 'src')
-rw-r--r-- | src/player.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/player.c b/src/player.c index abbd5c7..4768ecc 100644 --- a/src/player.c +++ b/src/player.c @@ -449,8 +449,8 @@ void *BarPlayerThread (void *data) { snprintf (extraHeaders, sizeof (extraHeaders), "Range: bytes=%u-\r\n", player->bytesReceived); wRet = WaitressFetchCall (&player->waith); - } while (wRet == WAITRESS_RET_PARTIAL_FILE || - wRet == WAITRESS_RET_TIMEOUT); + } while (wRet == WAITRESS_RET_PARTIAL_FILE || wRet == WAITRESS_RET_TIMEOUT + || wRet == WAITRESS_RET_READ_ERR); switch (player->audioFormat) { #ifdef ENABLE_FAAD |