aboutsummaryrefslogtreecommitdiffstats
path: root/src (unfollow)
Commit message (Collapse)AuthorFilesLines
2015-06-22lib/ffmpeg/Buffer: add "malloc" attributeMax Kellermann1-0/+1
2015-06-22InputStream: add ReadFull methodThomas Guillem2-1/+49
Convenient method that behave differently than Read, and that will be used by tag scanners. This method will return in case of error, if the whole data is read or is EOF is reached.
2015-06-21PlayerThread: start the decoder on PlayerCommand::QUEUEMax Kellermann1-0/+6
Fixes missing SongBorder() call, which causes "single" mode breakage.
2015-06-21DecoderAPI: discard unused song tag earlyMax Kellermann1-2/+5
If there's a stream tag, don't let the song tag override it in the next update_stream_tag() call.
2015-06-21DecoderThread: set Decoder::song_tag only for local filesMax Kellermann1-1/+5
If the song tag comes from a stream, and MPD playback restarts, MPD would believe the tag should override the newly received tag. This makes the previous tag appear stuck. This change passes the song tag only if it's authoritative - i.e. if it's a song file.
2015-06-20DecoderAPI: "move" the Tag objectMax Kellermann1-1/+1
Reduce runtime overhead.
2015-06-20OutputControl: fix fail_timer check right after bootingRomain Rollet1-1/+2
Right after booting, the monotonic clock starts with a very small value, and AudioOutput::LockUpdate() may believe that the fail_timer has not recovered yet.
2015-06-20system/PeriodClock: make IsDefined() "constexpr"Max Kellermann1-1/+1
2015-06-20pcm/soxr: fix recipe parserMax Kellermann1-1/+1
2015-06-20decoder/ffmpeg: skip unwanted samples after seekingMax Kellermann1-5/+48
When seeking to the beginning of a packet, skip the samples that come before the desired time stamp.
2015-06-20decoder/ffmpeg: use AVSEEK_FLAG_BACKWARD for seekingMax Kellermann1-1/+5
Ask FFmpeg to seek to the next packet boundary *before* the seek position, so we don't miss audio data. Now we get too much, but we'll solve that in the next commit.
2015-06-19decoder/ffmpeg: move code to StreamRelativePts()Max Kellermann1-6/+20
2015-06-19input/curl: trigger the condition variable in RequestDone()Max Kellermann1-0/+2
Fixes deadlock on small responses.
2015-05-29storage/nfs: fix deadlock when connectingThomas Guillem1-2/+2
The Connect method can be called between Schedule and lock. In that case, when locked, the state is already set to CONNECTING of READY and the condition won't be signaled anymore.
2015-05-29input/smbclient: fix DFF playbackjai1-0/+1
2015-03-25OpusEncoderPlugin: initialise granulepos so we end up with sane valuesMichal Nazarewicz1-1/+1
Not initialising granulepos leads to it having arbitrary values in the encoded stream including possibly negative values which are not valid and confuse opusdec. Explicitly initialise opus_encoder::granulepos to avoid that problem.
2015-03-25db/update/ExcludeList: use the NarrowPath classMax Kellermann1-1/+2
2015-03-25fs/io/FileOutputStream: fix wrong #ifdef WIN32Max Kellermann1-23/+3
2015-03-24Playlist*: use the BufferedOutputStream API instead of FILE*Max Kellermann3-38/+36
2015-03-24PlaylistSave: return bool/Error instead of PlaylistResultMax Kellermann3-24/+28
2015-03-24PlaylistFile: export spl_map_to_fs() and TranslatePlaylistError()Max Kellermann2-2/+9
2015-03-24PlaylistFile: eliminate redundant spl_map() callsMax Kellermann1-15/+0
2015-03-24Mapper: don't use C-style prototypesMax Kellermann2-3/+5
2015-03-24fs/io/FileOutputStream: add method Tell()Max Kellermann2-0/+20
2015-03-24fs/io/FileOutputStream: seek end-of-file in AppendFileOutputStream ctorMax Kellermann2-0/+12
2015-03-24system/FileDescriptor: add method Tell()Max Kellermann1-0/+5
2015-03-23fs/io/FileOutputStream: add class AppendFileOutputStreamMax Kellermann2-0/+67
2015-03-23fs/io/FileOutputStream: move code to new class BaseFileOutputStreamMax Kellermann2-49/+101
2015-03-23fs/io/FileOutputStream: make "path" constMax Kellermann1-1/+1
2015-03-23fs/io/BufferedOutputStream: add code commentsMax Kellermann2-0/+23
2015-03-21Main: notify systemd when MPD is readyMax Kellermann1-0/+8
2015-03-17*: doxygen fixupsMax Kellermann36-105/+54
2015-03-05fs/Traits: enable _UNICODE on WindowsMax Kellermann7-5/+113
Use wchar_t for everything on Windows. Solves a lot of filesystem charset problems.
2015-03-05output/recorder: convert path to UTF-8 for loggingMax Kellermann1-1/+2
2015-03-05fs/NarrowPath: new utility classMax Kellermann3-4/+55
2015-03-05output/winmm: convert device name to filesystem charsetMax Kellermann1-1/+7
2015-03-05output/winmm: eliminate "goto"Max Kellermann1-3/+7
2015-03-05fs/Path: reimplement GetSuffix() using GetBase() and StringFindLast()Max Kellermann1-1/+7
2015-03-05PlaylistStream: convert suffix to UTF-8Max Kellermann1-3/+8
2015-03-05TagFile: convert suffix to UTF-8Max Kellermann1-2/+4
2015-03-05fs/File{System,Info}: fix regular file checkMax Kellermann2-2/+4
Don't use FILE_ATTRIBUTE_NORMAL, it's a "magic" value for something else. To check if a file is a regular file, we need to check if it's NOT a directory (or a device).
2015-03-05fs/Path: use the "const_pointer" typedefMax Kellermann2-2/+2
2015-03-05event/ServerSocket: #ifdef out local socket support on WindowsMax Kellermann1-0/+8
2015-03-05util/StringUtil: add wchar_t overloadsMax Kellermann3-0/+105
2015-03-05util/StringAPI: add wchar_t overloadsMax Kellermann2-0/+138
2015-03-05fs/Traits: use TCHAR on WindowsMax Kellermann2-0/+21
2015-03-05fs/Traits: add macro PATH_LITERAL()Max Kellermann9-14/+18
2015-03-05fs/Traits: use string.h API wrappersMax Kellermann2-16/+137
2015-03-05input/Open: convert UTF-8 to filesystem charset for OpenLocalInputStream()Max Kellermann1-3/+8
2015-03-05input/Open: use PathTraitsUTF8 to check UTF-8 pathMax Kellermann1-1/+1