diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2011-09-19 17:29:09 +0200 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2011-11-09 20:10:03 +0100 |
commit | cfaeccb1e8a62ef0a5f7af7d3496a3bfc5ca381e (patch) | |
tree | 89004114da0b676742b7d2730d9feedea87a3b5d /src/player.c | |
parent | ffb0ab45fb142fbad732562b787918ba503f0643 (diff) | |
download | pianobar-cfaeccb1e8a62ef0a5f7af7d3496a3bfc5ca381e.tar.gz pianobar-cfaeccb1e8a62ef0a5f7af7d3496a3bfc5ca381e.tar.bz2 pianobar-cfaeccb1e8a62ef0a5f7af7d3496a3bfc5ca381e.zip |
waitress: support chunked encoding
as requested by rfc 2616
Diffstat (limited to 'src/player.c')
-rw-r--r-- | src/player.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/player.c b/src/player.c index b45b40d..6cb8206 100644 --- a/src/player.c +++ b/src/player.c @@ -371,7 +371,7 @@ static WaitressCbReturn_t BarPlayerMp3Cb (void *ptr, size_t size, void *stream) } /* calc song length using the framerate of the first decoded frame */ - player->songDuration = (unsigned long long int) player->waith.contentLength / + player->songDuration = (unsigned long long int) player->waith.request.contentLength / ((unsigned long long int) player->mp3Frame.header.bitrate / (unsigned long long int) BAR_PLAYER_MS_TO_S_FACTOR / 8LL); |