Always run cleanup, ensure thread is joined and player struct is reset. See #250.
Forgot that in commit 94c1eec
32kbit/s. Closes #233.
This reverts commit 35763de. It does not work with the JSON API.
There does not seem to be an API call for that.
Ask Pandora for audio format requested by user. Closes #244.
It’s a bad idea to hardcode these, although playback does not work with non-android login yet.
In random order: Thanks to Chris Eby for his work on pithos, to an anonymous coward for sending me his Android client, to Alex Howard for sending me the webOS client, to ZigZagJoe for providing a temporary fix and thanks to everyone who sent Pandora a message. Although there are a few rough edges here and there this fixes #236.
Strict pthread implementations (like OpenBSD’s rthreads with PTHREAD_MUTEX_TYPE_STRICT_NP set) don’t allow unlocking a mutex that is not locked, resulting in abort() being called. Always aquiring the lock before unlocking it while skipping to the next song fixes this. Thanks to David Coppa.
Ordinary files are not supported and cause problems, so close the fd and print a warning instead. Thanks to Sergey Bronnikov for the initial patch.
Move player buffer to heap, a few const’s here and there, increase header buffer size, fix comments.