diff options
author | Lars-Dominik Braun <PromyLOPh@lavabit.com> | 2009-06-28 21:02:47 +0200 |
---|---|---|
committer | Lars-Dominik Braun <PromyLOPh@lavabit.com> | 2009-06-28 21:04:29 +0200 |
commit | 2c7a776e8882b7896090a24dc09ccd42e6f8a6ca (patch) | |
tree | dec27dc70d4bf6d77e268dfe7933c84818bab90d /src/player.c | |
parent | 07f712797df608f20f2dc119d41e3325cb20a99d (diff) | |
download | pianobar-2c7a776e8882b7896090a24dc09ccd42e6f8a6ca.tar.gz pianobar-2c7a776e8882b7896090a24dc09ccd42e6f8a6ca.tar.bz2 pianobar-2c7a776e8882b7896090a24dc09ccd42e6f8a6ca.zip |
Finally clean up curl garbage
I missed some #includes. Documentation had to be updated, too.
Diffstat (limited to 'src/player.c')
-rw-r--r-- | src/player.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/player.c b/src/player.c index 4768ecc..beccc37 100644 --- a/src/player.c +++ b/src/player.c @@ -116,12 +116,11 @@ inline void BarPlayerBufferMove (struct audioPlayer *player) { /* play aac stream * @param streamed data - * @param block size - * @param received blocks + * @param received bytes * @param extra data (player data) * @return received bytes or less on error */ -char BarPlayerAACCurlCb (void *ptr, size_t size, void *stream) { +char BarPlayerAACCb (void *ptr, size_t size, void *stream) { char *data = ptr; struct audioPlayer *player = stream; @@ -300,7 +299,7 @@ inline signed short int BarPlayerMadToShort (mad_fixed_t fixed) { return (signed short int) (fixed >> (MAD_F_FRACBITS - 15)); } -char BarPlayerMp3CurlCb (void *ptr, size_t size, void *stream) { +char BarPlayerMp3Cb (void *ptr, size_t size, void *stream) { char *data = ptr; struct audioPlayer *player = stream; size_t i; @@ -421,7 +420,7 @@ void *BarPlayerThread (void *data) { conf->downMatrix = 1; NeAACDecSetConfiguration(player->aacHandle, conf); - player->waith.callback = BarPlayerAACCurlCb; + player->waith.callback = BarPlayerAACCb; break; #endif /* ENABLE_FAAD */ @@ -431,7 +430,7 @@ void *BarPlayerThread (void *data) { mad_frame_init (&player->mp3Frame); mad_synth_init (&player->mp3Synth); - player->waith.callback = BarPlayerMp3CurlCb; + player->waith.callback = BarPlayerMp3Cb; break; #endif /* ENABLE_MAD */ |