diff options
author | Lars-Dominik Braun <PromyLOPh@gmail.com> | 2008-06-18 14:59:17 +0200 |
---|---|---|
committer | Lars-Dominik Braun <PromyLOPh@gmail.com> | 2008-06-18 15:01:49 +0200 |
commit | de291a1b2290997051c22bef5d2d37714c5bd41f (patch) | |
tree | 0705bfadc37a2e59d8a2f62a53596b4b57cedf16 | |
parent | fa74802af61198688422f8e787b8c897c8b525e2 (diff) | |
download | pianobar-de291a1b2290997051c22bef5d2d37714c5bd41f.tar.gz pianobar-de291a1b2290997051c22bef5d2d37714c5bd41f.tar.bz2 pianobar-de291a1b2290997051c22bef5d2d37714c5bd41f.zip |
client: curl expects write callback to return size_t
-rw-r--r-- | src/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -66,12 +66,12 @@ void dumpBuffer (char *buf, size_t len) { } /* FIXME: this is a huge block of _bad_ and buggy code */ -int playCurlCb (void *ptr, size_t size, size_t nmemb, void *stream) { +size_t playCurlCb (void *ptr, size_t size, size_t nmemb, void *stream) { char *data = ptr; struct aacPlayer *player = stream; if (player->doQuit) { - return -1; + return 0; } if (player->dataMode == 1) { |