summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2014-06-08Prepare for release 2014.06.082014.06.08Lars-Dominik Braun2-1/+12
2014-06-07Fix autodetection of ffmpeg 2.2Lars-Dominik Braun1-2/+1
Drop minor version check, assuming this workaround is required for all future versions. See 0a64272db65201fc2ecb3406b89d895966933b99. Fixes issue #456.
2014-06-04Print error message when proxy URL format is incorrectTej Chajed1-2/+10
2014-06-02Show username stored in config if asking for passwordLars-Dominik Braun1-2/+8
Thanks to Unit 193 for the suggestion.
2014-06-02libav* autodetectionLars-Dominik Braun2-23/+21
I’ll give it another shot. ffmpeg’s doc/developer.texi states their micro version always starts at 100 for this very reason. Use that to detect ffmpeg and guess its version by looking at major and minor version numbers. Let’s hope this works.
2014-05-30settings: Support ~/ expansionLars-Dominik Braun3-33/+73
Only the simple ~/ expansion is supported right now, since ~user expansion does not make sense for per-user config files anyway. Closes #431 and #430. On my way to this solution I tried libconfuse and json-based config files. I’m not convinced yet one of these is the solution though…
2014-05-25waitress: Improve getaddr error messageLars-Dominik Braun1-1/+1
2014-05-08piano: Fix include guard of crypt.hLars-Dominik Braun1-3/+3
Missed that one in 4d8ad7d87072bc1631d0b949930f4869e56b7b99. Fixes #449.
2014-05-08Makefile: Improve libav selectionLars-Dominik Braun1-4/+8
See #447.
2014-04-22player: Add missing header for ffmpeg1.2Lars-Dominik Braun2-1/+5
Closes #441.
2014-04-22Fix include guardsLars-Dominik Braun13-39/+39
Macros starting with _ are reserved (see http://www.gnu.org/software/libc/manual/html_node/Reserved-Names.html). Fixes #440.
2014-04-18player: Fix state-machineLars-Dominik Braun2-1/+2
Song timer was shown without song playing.
2014-04-18waitress: Use standard socket buffer sizeLars-Dominik Braun1-5/+0
libav* uses its own HTTP implementation and the API calls do not benefit from it anyway.
2014-04-12INSTALL: Add note about libav* configurationLars-Dominik Braun1-2/+6
2014-04-11Fix volume controlLars-Dominik Braun3-37/+19
Commit 8012d6cb4bb65a858105ef878c5b98d91b24e1cd was broken in several ways. Since auto-detection did not work correctly it was replaced by a user-editable variable. See #439.
2014-04-07ffmpeg compatibilityLars-Dominik Braun3-32/+66
Adds support for ffmpeg 2.2 and 1.2. Right now the maintenance overhead of supporting both libav implementations is not that big. Fixes #437 and #435.
2014-04-07player: discard unused streamnsLars-Dominik Braun1-0/+6
Shouldn’t make a difference right now. Just in case…
2014-04-04Send headers in first packet.Kenny MacDermid1-9/+6
Splitting up the writes causes the Host header to end up in a different packet than the requst line, making it harder to proxy.
2014-04-04Send the server_name extension.Kenny MacDermid1-0/+4
Required by sniproxy when forwarding the connection.
2014-03-31Fix compiler warningLars-Dominik Braun1-2/+2
2014-03-31Use libav/ffmpeg for audio decodingLars-Dominik Braun7-627/+304
libav 9.12 and ffmpeg 2.2 have been tested. Here’s why: My mp4 “parser” *cough* never was a mp4 parser in the sense that it actually understood the file format. Instead it grepped the input stream for “magic” strings (section identifiers). That alone should be sufficient to throw away the code and rewrite it. Additionally libfaad2 has not been updated for ages. I guess it was abandoned in favor of libav/ffmpeg. With libav/ffmpeg, which we support both as long as the API’s don’t diverge too much, pianobar gains fast and reliable AAC and MP3 decoding without bothering too much about the details. Most users will have it installed already. On my own machine libav consumes about 2/3 CPU time compared to the previous solution when playing AAC. Unfortunately memory usage doubled and my attempts to disable unused protocols/formats/codec failed due to libav’s API limitations. While cleaning up a small detail regarding the eventcmd API has changed too: Song duration and position are measured in seconds instead of milliseconds now. Since libav/ffmpeg keeps track of accurate timing the precision pianobar keeps track of can be reduced, while still being sufficient for most users.
2014-03-14waitress: Increase kernel receive bufferLars-Dominik Braun1-1/+1
Suggested in #426. Should be large enough for a complete song now (if permitted by sysctl). The correct solution™ would be a buffer in userspace though.
2014-03-14piano: Request track lengthLars-Dominik Braun4-2/+7
The returned length is used as first length estimate before enough audio data arrives to show the real length and for the eventcmd API. See #427 and #64.
2014-03-13fix warnings now noted due to format string checkingCody P Schafer3-7/+7
2014-03-13Add an attribute to start checking format stringsCody P Schafer1-1/+1
2014-01-31Switch to clang for debugging build + fix issuesLars-Dominik Braun4-46/+40
2014-01-12Return if station info request failsLars-Dominik Braun1-1/+5
2014-01-02Added Ctrl-u to readlineLars-Dominik Braun2-21/+28
Based on suggestion from Sebastian, see issue #416. Fixed several issues (multibyte, \0-termination) and refactored readline code while I’m at it.
2013-10-24Port to OpenBSDRichard Allen1-0/+2
This really just tells the makefile how to call the compiler on OpenBSD. You'll also want the following packages: json libmad libao faad gnutls
2013-09-15Back to -devLars-Dominik Braun1-1/+1
2013-09-15Prepare for release 2013.09.152013.09.15Lars-Dominik Braun2-1/+11
2013-09-08waitress: Move testcases to separate fileLars-Dominik Braun4-123/+149
Now the test-enabled waitress.o does not conflict with pianobar’s waitress.o any more, thus running `make test` without `make clean` works fine.
2013-08-12headless_pianobar: Support command-line argumentsPeter Olson1-70/+148
See issue #383.
2013-08-09Remove nonexisting list.h from MakefileLars-Dominik Braun1-1/+0
Oops. Fixes #386.
2013-08-08waitress: Try all addresses returned by getaddrinfoLars-Dominik Braun1-32/+51
Fixes issue #384.
2013-08-07piano: Generic linked listsLars-Dominik Braun9-231/+239
Introduces generic linked list structure and functions (like append, delete, …). Removes a lot of copy&pasted code and improves code readability/reusability. Heads up: This change breaks libpiano’s ABI.
2013-07-30Added support for EOF and ^D and environment variables to headless_pianobarPeter Olson1-3/+6
Closes #382.
2013-07-29Fix display of song lists with more than 999 itemsLars-Dominik Braun1-1/+1
Increased buffer size.
2013-07-28piano: Replace station with same idLars-Dominik Braun1-3/+19
2013-07-07Add keyboard shortcut to reset volumeLars-Dominik Braun6-7/+26
Closes #377.
2013-07-02piano: Check for libgcrypt errorsLars-Dominik Braun4-13/+34
Fixes mysterious segfaults from issue #369 and #293.
2013-06-08Fix build in FreeBSDWilliam Grzybowski4-1/+8
2013-05-19Back to -devLars-Dominik Braun1-1/+1
2013-05-19Prepare for release 2013.05.192013.05.19Lars-Dominik Braun2-1/+13
2013-05-13Permit multiple HTTP errors in a rowLars-Dominik Braun7-9/+23
1) Make sure that multiple bad playlists in a row don’t result in a temporary ban 2) Ignore songs skipped because the playlist timed out after pausing for too long
2013-05-08waitress: Close connection if body has been receivedLars-Dominik Braun2-0/+9
Now libwaitress won’t wait until the server closes the connection if the request body has been received. Multiple requests per connection are not supported anyway. Fixes #321. Thanks to Michael Stowe.
2013-04-30Makefile: Use simple variablesLars-Dominik Braun1-30/+30
TIL recursive variables and $(shell …) slow down `make`.
2013-04-30Makefile: Use new json-c pkgconfig file nameLars-Dominik Braun1-2/+2
Keeps compatibility with older versions (will be removed in the future). Closes #364.
2013-04-17Link dynamic pianobar against gcryptLars-Dominik Braun1-1/+2
Commit 96db841a16670b52fa462337c657c6dc6bd2844a added initialization functions to the pianobar binary but failed to link the dynamically linked version against libgcrypt. Closes #362.
2013-04-17Fix player state for unsupported audio file formatsLars-Dominik Braun1-4/+6
Player thread now sets its status correctly. Closes #360.