- 19 Nov, 2021 4 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
With large "max_playlist_length" settings, the "data" array can be very large, and initializing it during MPD startup causes page faults, resulting in allocation of physical RAM. This commit postpones the initialization until the queue is really large, to avoid wasting memory.
-
Max Kellermann authored
-
kaliko authored
-
- 13 Nov, 2021 1 commit
-
-
Shen-Ta Hsieh authored
Signed-off-by: Shen-Ta Hsieh <ibmibmibm.tw@gmail.com>
-
- 11 Nov, 2021 10 commits
-
-
git://github.com/neheb/MPDMax Kellermann authored
-
Rosen Penev authored
C arrays can be used with make_unique in C++17. Signed-off-by: Rosen Penev <rosenp@gmail.com>
-
git://github.com/neheb/MPDMax Kellermann authored
-
Rosen Penev authored
Signed-off-by: Rosen Penev <rosenp@gmail.com>
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
This reverts commit 552c30ea. It has caused various problems; for example, MPD wasn't able to write the pid_file (which was already mitigated by commit a4e42172). And apparently, the socket file created in the same directory by mpd.socket disappears when mpd.service (re)creates the directory. I could not reproduce this problem with 247.3, but maybe this is a bug in older systemd versions? Until we figure out why this happens, let's remove the RuntimeDirectory directive. A future MPD version may be launched as regular user, not as root, which will eliminate one major problem with RuntimeDirectory.
-
Max Kellermann authored
Closes https://github.com/MusicPlayerDaemon/MPD/issues/1328
-
Max Kellermann authored
-
Max Kellermann authored
-
- 10 Nov, 2021 1 commit
-
-
0xC0ncord authored
This fixes this build error observed with clang and -stdlib=libc++: ../mpd-0.23.3/src/output/plugins/PipeWireOutputPlugin.cxx:661:55: error: implicit instantiation of undefined template 'std::array<std::byte, 64>' std::array<std::byte, MAX_CHANNELS * MAX_INTERLEAVE> buffer; ^ /usr/include/c++/v1/__tuple:219:64: note: template is declared here template <class _Tp, size_t _Size> struct _LIBCPP_TEMPLATE_VIS array; ^
-
- 09 Nov, 2021 1 commit
-
-
Max Kellermann authored
For libavcodec 59 support. Closes https://github.com/MusicPlayerDaemon/MPD/issues/1333
-
- 08 Nov, 2021 2 commits
-
-
Max Audron authored
Add an option to the UPnP database plugin to configure which interface is used by upnp to discover servers. upnp by default selects the first interface that is not loopback, which in some cases might not be the desired interface. For example if wanting to access a DLNA server over a VPN connection. The "interface" option can now be set to the name of the desired interface to achieve this. The default behaviour remains unchanged.
-
Max Audron authored
Adds the Interface Name as an argument to the *Init functions to make it possible to select which interface is used by upnp to detect servers. Currently "nullptr" is passed in to let the upnp library select an interface, as before.
-
- 05 Nov, 2021 6 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
Commit 552c30ea caused problems for those people who still had a "pid_file" setting (even though that is obsolete with systemd), because now /run/mpd is owned by root:root (our mpd.service has no User=mpd directive, so systemd starts MPD as root). To work around this problem, and to be able to keep RuntimeDirectory=mpd (which solved a problem of other MPD users), the best compromise seems to just ignore the "pid_file" setting when it is of no use.
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
This way, MPD can reliably detect whether it was started as systemd service, which is better than checking sd_booted(), which only checks whether systemd manages all services, but still MPD could be started manually.
-
- 04 Nov, 2021 8 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
-
-
Max Kellermann authored
-
Max Kellermann authored
-
Shen-Ta Hsieh authored
Signed-off-by: Shen-Ta Hsieh <ibmibmibm.tw@gmail.com>
-
Shen-Ta Hsieh authored
Signed-off-by: Shen-Ta Hsieh <ibmibmibm.tw@gmail.com>
-
- 03 Nov, 2021 1 commit
-
-
Max Kellermann authored
Fixes assertion failure when the EventLoop gets destructed before Run() was ever called. Fixes https://bugs.debian.org/998310
-
- 31 Oct, 2021 6 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
-