From cfaeccb1e8a62ef0a5f7af7d3496a3bfc5ca381e Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Mon, 19 Sep 2011 17:29:09 +0200 Subject: waitress: support chunked encoding as requested by rfc 2616 --- src/player.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/player.c') 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); -- cgit v1.2.3