Merge branch 'v0.23.x'

This commit is contained in:
Max Kellermann 2022-09-06 21:15:42 +02:00
commit d5d25d78da
5 changed files with 13 additions and 5 deletions

4
NEWS
View File

@ -18,6 +18,10 @@ ver 0.24 (not yet released)
* static partition configuration * static partition configuration
* remove Haiku support * remove Haiku support
ver 0.23.10 (not yet released)
* Windows
- log to stdout by default, don't require "log_file" setting
ver 0.23.9 (2022/08/18) ver 0.23.9 (2022/08/18)
* input * input
- cdio_paranoia: add options "mode" and "skip" - cdio_paranoia: add options "mode" and "skip"

View File

@ -2,8 +2,8 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.musicpd" package="org.musicpd"
android:installLocation="auto" android:installLocation="auto"
android:versionCode="68" android:versionCode="69"
android:versionName="0.23.9"> android:versionName="0.23.10">
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="30"/> <uses-sdk android:minSdkVersion="21" android:targetSdkVersion="30"/>

View File

@ -158,12 +158,15 @@ log_init(const ConfigData &config, bool verbose, bool use_stdout)
getenv("NOTIFY_SOCKET") != nullptr) { getenv("NOTIFY_SOCKET") != nullptr) {
/* if MPD was started as a systemd /* if MPD was started as a systemd
service, default to journal (which service, default to journal (which
is connected to fd=2) */ is connected to stdout&stderr) */
out_fd = STDOUT_FILENO; out_fd = STDOUT_FILENO;
return; return;
} }
#endif #endif
#ifndef HAVE_SYSLOG #ifdef _WIN32
/* default to stdout on Windows */
out_fd = STDOUT_FILENO;
#elif !defined(HAVE_SYSLOG)
throw std::runtime_error("config parameter 'log_file' not found"); throw std::runtime_error("config parameter 'log_file' not found");
#endif #endif
#ifdef HAVE_SYSLOG #ifdef HAVE_SYSLOG

View File

@ -166,7 +166,7 @@ class Iso9660InputStream final : public InputStream {
assert(fill <= data.size()); assert(fill <= data.size());
assert(position <= fill); assert(position <= fill);
return {&data[position], &data[fill]}; return {data.data() + position, data.data() + fill};
} }
void Consume(size_t nbytes) noexcept { void Consume(size_t nbytes) noexcept {

View File

@ -20,6 +20,7 @@ test(
dependencies: [ dependencies: [
net_dep, net_dep,
fs_dep, fs_dep,
util_dep,
gtest_dep, gtest_dep,
], ],
), ),