From 010a7e653489ddbd4be190547c3f176639381ed9 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Sat, 21 Jun 2008 15:49:37 +0200 Subject: client: Some cleanup Now unneeded header, linebreaks --- src/player.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/player.c') diff --git a/src/player.c b/src/player.c index 3a7aa25..a969245 100644 --- a/src/player.c +++ b/src/player.c @@ -123,8 +123,8 @@ size_t playCurlCb (void *ptr, size_t size, size_t nmemb, void *stream) { &player->channels); player->bufferRead += 5; if (err != 0) { - printf ("Error while initializing audio decoder (%i)\n", - err); + printf ("Error while initializing audio decoder" + "(%i)\n", err); return 1; } audioOutDriver = ao_default_driver_id(); @@ -159,7 +159,8 @@ size_t playCurlCb (void *ptr, size_t size, size_t nmemb, void *stream) { /* how many frames do we have? */ if (player->sampleSizeN == 0) { /* mp4 uses big endian, convert */ - player->sampleSizeN = changeByteorderUI32 (player->buffer + + player->sampleSizeN = + changeByteorderUI32 (player->buffer + player->bufferRead); player->sampleSize = calloc (player->sampleSizeN, sizeof (player->sampleSizeN)); -- cgit v1.2.3