summaryrefslogtreecommitdiff
path: root/src/lib
AgeCommit message (Collapse)Author
2021-05-25subprojects/sqlite3.wrap: add SQLite wrapMax Kellermann
2021-05-25lib/sqlite/meson.build: add missing external dependency on libsqliteMax Kellermann
2021-05-17python/build/libs.py: update CURL to 7.76.1Max Kellermann
2021-04-26output/jack: enable on WindowsMax Kellermann
This enables the JACK output plugin on Windows, but doesn't link against libjack64.dll, instead loads the DLL at runtime with LoadLibrary(). This kludge avoids the extremely fragile JACK shared memory protocol by using the system's libjack64.dll, without requiring the same DLL at build time.
2021-03-04use structured binding declarationsRosen Penev
Shorter. Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-03-04util/AllocatedString: remove Null(), IsNull()Max Kellermann
2021-03-04util/AllocatedString: replace Clone() with copy constructorMax Kellermann
2021-03-04util/AllocatedString: add string_view constructorMax Kellermann
Replaces the static Duplicate() method.
2021-03-04util/AllocatedString: add default constructorMax Kellermann
2021-03-04util/AllocatedString: rename to BasicAllocatedStringMax Kellermann
To make things simpler, AllocatedString is now a non-template class.
2021-01-19lib/pcre/RegexPointer: work around bogus -Wmaybe-uninitialized with GCC 11Max Kellermann
2021-01-01copyright year 2021Max Kellermann
2020-11-30lib/ffmpeg/Filter: Add define required for avutilDanilo Spinella
2020-11-16filter/ffmpeg: detect the output sample formatMax Kellermann
Some FFmpeg filters change the sample format, and since MPD assumes this never happens, this results in loud noise instead of music. This commit finally implements the TODO comment by sending one frame of silence to the filter and checking the output frame's format. Closes https://github.com/MusicPlayerDaemon/MPD/issues/1009
2020-11-04decoder/ffmpeg: move code to lib/ffmpeg/Interleave.cxxMax Kellermann
To be reused by the FFmpeg filter plugin.
2020-11-04lib/ffmpeg/Buffer: add missing includeMax Kellermann
2020-11-04lib/ffmpeg/Buffer: disallow copyingMax Kellermann
2020-11-04lib/ffmpeg/Buffer: add `noexcept`Max Kellermann
2020-11-04lib/ffmpeg/{Buffer,Time}: remove obsolete "#undef SampleFormat"Max Kellermann
This compatibility macro has been removed from FFmpeg long ago.
2020-10-28lib/yajl/Handle: strip newlines from error messagesMax Kellermann
Closes https://github.com/MusicPlayerDaemon/MPD/issues/981
2020-10-28lib/yajl/Handle: un-inline the throwing codeMax Kellermann
Reduces header dependencies.
2020-10-17lib/nfs/patches: disable the snprintf->sprintf_s aliasMax Kellermann
snprintf() is available on mingw, and the libnfs kludge broke the build with mingw, because sprintf_s() was now both an inline function and a "dllimport" function (because the macro renamed the inline function snprintf() to sprintf_s() in mingw's stdio.h).
2020-10-15lib/dbus/Watch: add missing include for assert()Max Kellermann
2020-10-08event/TimerEvent: add type alias for std::chrono::steady_clock::durationMax Kellermann
2020-10-08StateFileConfig, ...: drop obsolete out-of-class definitionMax Kellermann
2020-09-16remove GCC5 hacksRosen Penev
GCC5 cannot build mpd. Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-09-04Merge branch 'v0.21.x' into masterMax Kellermann
2020-07-23lib/dbus/Values: use `using` instead of `typedef`Max Kellermann
2020-07-23lib/dbus/Values: add `uint32_t` and `uint64_t` supportMax Kellermann
2020-07-23lib/dbus/Message: add `noexcept`Max Kellermann
2020-07-23include cleanupMax Kellermann
2020-07-23lib/icu: fix build without libc iconv supportRosen Penev
Need to check for it in iconv.h. Otherwise meson prefixes a __builtin variant in the check.
2020-07-20lib/smbclient/Mutex: remove obsolete libraryMax Kellermann
2020-07-20lib/smbclient/Context: add global Mutex for smbc_{new,free}_context()Max Kellermann
Preparing to replace `smbclient_mutex`, for finer-grained locking.
2020-07-20lib/smbclient/Init: move code to SmbclientContext::New()Max Kellermann
We no longer need to call smbc_init() because we don't need the compat layer anymore.
2020-07-20*/smbclient: use the new API with SMBCCTX parameterMax Kellermann
As a side effect, the input plugin closes the SMB/CIFS connection after closing the file. This solves one part of https://github.com/MusicPlayerDaemon/MPD/issues/916
2020-07-20lib/smbclient/Context: new wrapper for SMBCCTXMax Kellermann
2020-07-06Log: make LogLevel the first parameterMax Kellermann
Prepare for templated functions.
2020-07-01system/ByteOrder: move to util/Max Kellermann
2020-06-10Merge tag 'v0.21.24'Max Kellermann
release v0.21.24
2020-06-10lib/curl/Request: don't enable CURLOPT_NETRC on WindowsMax Kellermann
Our Windows build is built with `--disable-netrc`, and that makes CURLOPT_NETRC fail, causing failures with all streams. D'oh! Closes https://github.com/MusicPlayerDaemon/MPD/issues/886
2020-05-30use std chr functionsRosen Penev
The ones in std have overloads for const char/char. Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-05-30lib/icu/Win32: paranoid-ify the buffer length checksMax Kellermann
Passing `length+1` to `MultiByteToWideChar()` means the function may fill the whole buffer with output data, and could theoretically overwrite the null terminator. In practice, this will never happen, but this way, it's slightly more correct. Also, null-terminate after `MultiByteToWideChar()`, after we got the real output length. Again, this would never have been a problem, but who knows...
2020-05-30lib/icu: add null terminate in win32 string and wstringShen-Ta Hsieh
2020-05-27lib/ffmpeg/Time: redefine AV_TIME_BASE_Q with initializer listMax Kellermann
libavutil's macro definition is a compound literal, which is illegal in C++. Fixes yet another -Wpedantic warning.
2020-05-27lib/upnp/Compat: workaround for -Wkeyword-macroMax Kellermann
2020-05-27lib/upnp: drop support for libupnp versions older than 1.8Max Kellermann
2020-05-27Merge branch 'v0.21.x'Max Kellermann
2020-05-27lib/ffmpeg/Time: replace C99 compound literal with C++ initializer listMax Kellermann
2020-05-27remove some more extra semicolonsRosen Penev
Signed-off-by: Rosen Penev <rosenp@gmail.com>