summaryrefslogtreecommitdiff
path: root/src/player.c
diff options
context:
space:
mode:
authorLars-Dominik Braun <PromyLOPh@gmail.com>2008-06-21 15:49:37 +0200
committerLars-Dominik Braun <PromyLOPh@gmail.com>2008-06-21 15:49:37 +0200
commit010a7e653489ddbd4be190547c3f176639381ed9 (patch)
treef208db33c8e725ff54a41f3364b2ba52f342f091 /src/player.c
parenta6ac279068bbe315b5f768d43e61e8ce06b5304c (diff)
downloadpianobar-010a7e653489ddbd4be190547c3f176639381ed9.tar.gz
pianobar-010a7e653489ddbd4be190547c3f176639381ed9.tar.bz2
pianobar-010a7e653489ddbd4be190547c3f176639381ed9.zip
client: Some cleanup
Now unneeded header, linebreaks
Diffstat (limited to 'src/player.c')
-rw-r--r--src/player.c7
1 files changed, 4 insertions, 3 deletions
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));