diff options
author | Lars-Dominik Braun <PromyLOPh@gmail.com> | 2008-06-23 10:56:07 +0200 |
---|---|---|
committer | Lars-Dominik Braun <PromyLOPh@gmail.com> | 2008-06-23 10:56:07 +0200 |
commit | daee8ba2b0030ddc53269482470d733d47604b88 (patch) | |
tree | c4b59903fe71877b02cc19c1175945c4468dabb8 /src/player.c | |
parent | 6e4a83107213a282128b0db8d61d54dd0981a06f (diff) | |
download | pianobar-daee8ba2b0030ddc53269482470d733d47604b88.tar.gz pianobar-daee8ba2b0030ddc53269482470d733d47604b88.tar.bz2 pianobar-daee8ba2b0030ddc53269482470d733d47604b88.zip |
client: Use function prefix "Bar"
Diffstat (limited to 'src/player.c')
-rw-r--r-- | src/player.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/player.c b/src/player.c index a969245..568d15a 100644 --- a/src/player.c +++ b/src/player.c @@ -30,7 +30,7 @@ THE SOFTWARE. * @param unsigned int * @return byteswapped unsigned int */ -unsigned int changeByteorderUI32 (char buf[4]) { +unsigned int BarChangeByteorderUI32 (char buf[4]) { unsigned int ret = 0; ret = buf[0] << 24 & 0xffffffff; @@ -47,7 +47,7 @@ unsigned int changeByteorderUI32 (char buf[4]) { * @param extra data (player data) * @return received bytes or less on error */ -size_t playCurlCb (void *ptr, size_t size, size_t nmemb, void *stream) { +size_t BarPlayerCurlCb (void *ptr, size_t size, size_t nmemb, void *stream) { char *data = ptr; struct aacPlayer *player = stream; @@ -160,7 +160,7 @@ size_t playCurlCb (void *ptr, size_t size, size_t nmemb, void *stream) { if (player->sampleSizeN == 0) { /* mp4 uses big endian, convert */ player->sampleSizeN = - changeByteorderUI32 (player->buffer + + BarChangeByteorderUI32 (player->buffer + player->bufferRead); player->sampleSize = calloc (player->sampleSizeN, sizeof (player->sampleSizeN)); @@ -169,7 +169,7 @@ size_t playCurlCb (void *ptr, size_t size, size_t nmemb, void *stream) { break; } else { player->sampleSize[player->sampleSizeCurr] = - changeByteorderUI32 (player->buffer + + BarChangeByteorderUI32 (player->buffer + player->bufferRead); player->sampleSizeCurr++; player->bufferRead += 4; @@ -209,7 +209,7 @@ size_t playCurlCb (void *ptr, size_t size, size_t nmemb, void *stream) { * @param aacPlayer structure * @return NULL NULL NULL ... */ -void *threadPlayUrl (void *data) { +void *BarPlayerThread (void *data) { struct aacPlayer *player = data; NeAACDecConfigurationPtr conf; @@ -222,7 +222,7 @@ void *threadPlayUrl (void *data) { NeAACDecSetConfiguration(player->aacHandle, conf); curl_easy_setopt (player->audioFd, CURLOPT_URL, player->url); - curl_easy_setopt (player->audioFd, CURLOPT_WRITEFUNCTION, playCurlCb); + curl_easy_setopt (player->audioFd, CURLOPT_WRITEFUNCTION, BarPlayerCurlCb); curl_easy_setopt (player->audioFd, CURLOPT_WRITEDATA, player); curl_easy_setopt (player->audioFd, CURLOPT_USERAGENT, PACKAGE_STRING); curl_easy_perform (player->audioFd); |