Merge tag 'v0.19.20'
release v0.19.20
This commit is contained in:
5
NEWS
5
NEWS
@@ -59,7 +59,9 @@ ver 0.20 (not yet released)
|
|||||||
* switch the code base to C++14
|
* switch the code base to C++14
|
||||||
- GCC 4.9 or clang 3.4 (or newer) recommended
|
- GCC 4.9 or clang 3.4 (or newer) recommended
|
||||||
|
|
||||||
ver 0.19.20 (not yet released)
|
ver 0.19.20 (2016/12/09)
|
||||||
|
* protocol
|
||||||
|
- "setprio" re-enqueues old song if priority has been raised
|
||||||
* decoder
|
* decoder
|
||||||
- ffmpeg: ignore empty packets
|
- ffmpeg: ignore empty packets
|
||||||
- pcm: fix corruption bug with partial frames (after short read)
|
- pcm: fix corruption bug with partial frames (after short read)
|
||||||
@@ -67,6 +69,7 @@ ver 0.19.20 (not yet released)
|
|||||||
* output
|
* output
|
||||||
- winmm: fix 8 bit playback
|
- winmm: fix 8 bit playback
|
||||||
* fix gcc 7.0 -Wimplicit-fallthrough
|
* fix gcc 7.0 -Wimplicit-fallthrough
|
||||||
|
* systemd: paranoid security settings
|
||||||
|
|
||||||
ver 0.19.19 (2016/08/23)
|
ver 0.19.19 (2016/08/23)
|
||||||
* decoder
|
* decoder
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ static constexpr Domain log_domain("log");
|
|||||||
|
|
||||||
#ifndef ANDROID
|
#ifndef ANDROID
|
||||||
|
|
||||||
static int out_fd;
|
static int out_fd = -1;
|
||||||
static AllocatedPath out_path = AllocatedPath::Null();
|
static AllocatedPath out_path = AllocatedPath::Null();
|
||||||
|
|
||||||
static void redirect_logs(int fd)
|
static void redirect_logs(int fd)
|
||||||
|
|||||||
@@ -427,14 +427,15 @@ Queue::SetPriority(unsigned position, uint8_t priority, int after_order,
|
|||||||
|
|
||||||
if (_order < (unsigned)after_order) {
|
if (_order < (unsigned)after_order) {
|
||||||
/* the specified song has been played already
|
/* the specified song has been played already
|
||||||
- enqueue it only if its priority has just
|
- enqueue it only if its priority has been
|
||||||
become bigger than the current one's */
|
increased and is now bigger than the
|
||||||
|
current one's */
|
||||||
|
|
||||||
const unsigned after_position =
|
const unsigned after_position =
|
||||||
OrderToPosition(after_order);
|
OrderToPosition(after_order);
|
||||||
const Item *after_item =
|
const Item *after_item =
|
||||||
&items[after_position];
|
&items[after_position];
|
||||||
if (old_priority > after_item->priority ||
|
if (priority <= old_priority ||
|
||||||
priority <= after_item->priority)
|
priority <= after_item->priority)
|
||||||
/* priority hasn't become bigger */
|
/* priority hasn't become bigger */
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
@@ -14,6 +14,15 @@ LimitRTTIME=infinity
|
|||||||
# disallow writing to /usr, /bin, /sbin, ...
|
# disallow writing to /usr, /bin, /sbin, ...
|
||||||
ProtectSystem=yes
|
ProtectSystem=yes
|
||||||
|
|
||||||
|
# more paranoid security settings
|
||||||
|
NoNewPrivileges=yes
|
||||||
|
ProtectKernelTunables=yes
|
||||||
|
ProtectControlGroups=yes
|
||||||
|
ProtectKernelModules=yes
|
||||||
|
# AF_NETLINK is required by libsmbclient, or it will exit() .. *sigh*
|
||||||
|
RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX AF_NETLINK
|
||||||
|
RestrictNamespaces=yes
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
Also=mpd.socket
|
Also=mpd.socket
|
||||||
|
|||||||
Reference in New Issue
Block a user