aboutsummaryrefslogtreecommitdiffstats
path: root/src (unfollow)
Commit message (Collapse)AuthorFilesLines
2013-04-08command: don't check audio_format if not playingMax Kellermann1-7/+8
Fixes valgrind warning.
2013-04-08player_control: don't emit IDLE_PLAYER before audio format is knownMax Kellermann2-2/+4
Eliminates one IDLE_PLAYER call in playlist_control, and add two new ones to player_thread. Fixes Mantis bug 3636.
2013-04-08command: don't print undefined audio_formatMax Kellermann1-6/+9
Check audio_format_defined().
2013-04-05ffmpeg decoder plugin: do not allocate an AVFrame on stack.Anton Khirnov1-3/+16
AVFrame must be allocated with avcodec_alloc_frame().
2013-02-27Add some comments to keep track of timer units.Hagen Fritsch1-3/+5
2013-02-27clock: fix usec-to-usec factorHagen Fritsch1-1/+1
2013-02-27clock: add missing includeHagen Fritsch1-0/+3
2013-02-19command: allow to omit END in ranges (START:END)Jörg Thalheim1-1/+1
If END is omitted, mpd should use the highest possible value instead of raising an error. This partially reverts 52e9cab1c1743f64a7
2013-02-04player_thread: implement missing "idle" events on output errorsMax Kellermann1-1/+9
When all outputs fail, MPD automatically pauses playback, but did not emit the IDLE_PLAYER event. Thus, clients were not woken up. (Mantis 3665)
2013-01-16decoder/ffmpeg: support float planar audioBrice Jaglin1-0/+5
2013-01-03cue_parser: fix CUE files with only one trackMax Kellermann1-7/+47
Track whether _finish() has been called, and deliver all partial results then. Fixes Mantis ticket 0003621.
2013-01-03cue_parser: add code commentsMax Kellermann1-2/+21
2013-01-03cue_parser: fix memory leakMax Kellermann1-0/+3
2013-01-03cmdline: bunch of fixes related to config file selectionDenis Krjuchkov1-4/+4
- fix potential memory leak of system_path 'Potential' because currently g_get_system_config_dirs() returns single entry on Windows, but that might change. - remove incorrect g_free() call It's not required at all because g_get_system_config_dirs() returns GLib owned memory. - remove extra semicolon
2012-10-05playlist_song: fix potential charset bug in apply_song_metadata()Max Kellermann1-2/+9
The song's URI must be UTF-8, not filesystem character set.
2012-10-05playlist_save: use temp2 instead of tempMax Kellermann1-1/+2
Fixes minor Windows compatibility problem.
2012-10-05decoder/ffmpeg: support planar audioMax Kellermann1-0/+6
Implements Mantis feature request 3582.
2012-10-05decoder/ffmpeg: fix playback of planar PCM dataMax Kellermann1-8/+13
Interleaving was completely wrong. This code was never used, so it didn't have an effect.
2012-10-05decoder/ffmpeg: move code to copy_interleave_frame2()Max Kellermann1-5/+14
2012-10-05decoder/ffmpeg: ignore negative time stampsMax Kellermann1-1/+1
Works around assertion failure in decoder_timestamp().
2012-10-05decoder/ffmpeg: show unsupported sample format nameMax Kellermann1-2/+13
Use av_get_sample_fmt_string() to obtain a human-readable string.
2012-10-05decoder/ffmpeg: pass AVSampleFormat to ffmpeg_sample_format()Max Kellermann1-4/+9
API simplification.
2012-10-05decoder/ffmpeg: remove duplicate sample format error messageMax Kellermann1-1/+6
2012-10-02OSX: Set mDataByteSize correctly on AudioBuffers during render.Gregory Smith1-3/+7
2012-10-02output/{recorder,shout}: call encoder_read() in a loopMax Kellermann3-16/+23
This is necessary for Ogg packets that span more than one page.
2012-10-02output/recorder: move code to _write_to_file()Max Kellermann1-19/+31
2012-10-02output/recorder: fix write() error checkMax Kellermann1-3/+3
We can only check for negative values if the variable is signed.
2012-10-02output/recorder: make variables more localMax Kellermann1-16/+12
2012-10-02output/httpd: make variables more localMax Kellermann1-31/+16
2012-10-02encoder/vorbis: make variables more localMax Kellermann1-20/+12
2012-10-02output/recorder, test/*: invoke encoder_read() after _open()Max Kellermann2-0/+11
Make sure the file header gets written at the beginning, before _write() gets called.
2012-10-02output/shout: eliminate struct shout_bufferMax Kellermann1-7/+3
Move the raw buffer to struct shout_data.
2012-10-02output/shout: remove shout_buffer.lenMax Kellermann1-9/+4
Make it a local variable instead.
2012-10-02output/shout: fix memory leak in error handlerMax Kellermann1-2/+7
2012-10-02output/shout: make variables more localMax Kellermann1-49/+26
2012-09-25decoder_control: remove MixRamp debug messagesMax Kellermann4-10/+4
These are confusing, and since MixRamp development has ceased, not useful to anybody.
2012-09-25decoder/wavpack: support all APEv2 tagsMax Kellermann3-17/+17
WavPack tags are always APEv2, by definition. Reuse the tag_table from tag_ape.c, instead of rolling our own.
2012-09-22locate: cast enum tag_type to int before comparing with integerMax Kellermann1-4/+4
Avoids clang pickiness. This code is not correct, but we'll fix that another day.
2012-09-04decoder/_ogg_common: fix buffer size checkMax Kellermann1-1/+1
Fixes potential access to uninitialised memory.
2012-09-04decoder/_ogg_common: simplify the large "if" expressionMax Kellermann1-6/+8
2012-09-03AudioCompress: abort on out-of-memoryMax Kellermann1-0/+7
This library crashes on out-of-memory (NULL pointer dereference). There's not much useful MPD can do in such a situation, so let's explicitly abort instead, just like GLib does.
2012-09-03update_walk: fix unsafe readlink() usageMax Kellermann1-2/+10
2012-08-25playlist/cue: map "PERFORMER" to "artist" or "album artist"Max Kellermann1-1/+11
Implements Mantis ticket 0003549.
2012-08-25player_thread: disable cross-fading in "single" modeMax Kellermann4-8/+47
This commit reimplements the core of the "single" mode. Instead of doing the detection in the playlist code from the outside, it is moved to the player thread, which gets a new option called "border_pause". It will now pause playback exactly at the beginning of the new song, making the feature more reliable. Now that the player thread knows what will happen, it can suppress cross-fading. Fixes mantis tickets 0003055 and 0003166.
2012-08-21command: make "single" a boolMax Kellermann1-1/+1
2012-08-21queue_save: save song prioritiesMax Kellermann4-6/+25
2012-08-16playlist_print: fix memory leakMax Kellermann1-0/+3
2012-08-16playlist_song: pass const song to _check_load_song()Max Kellermann1-1/+1
2012-08-16playlist_song: fix user-after-free bugMax Kellermann1-1/+3
2012-08-15player_thread: add local variable "start_ms"Max Kellermann1-1/+3
Just in case "song" becomes invalid at some point.