diff --git a/changelog.md b/changelog.md
index 2bbdc1c7..1066ae14 100644
--- a/changelog.md
+++ b/changelog.md
@@ -5,9 +5,9 @@
### Features
- Client: Windows support (Issue #24)
-- Client: Add hardware mixer (Issue #318)
-- Client: Add "script" and "none" mixer (Issue #302)
-- Client: Add sharingmode for audio device (if supported)
+- Client: add hardware mixer (Issue #318)
+- Client: add "script" and "none" mixer (Issue #302)
+- Client: add sharingmode for audio device (if supported)
- Logging: configurable sink and filters (Issue #30, #561, #122, #559)
- Librespot: add option "disable-audio-cache=[false|true]"
@@ -18,6 +18,7 @@
- Client: high CPU load and crash during playback (Issue #609)
- Client: improved handling of USB audio disconnects (Issue #64)
- Client: latency is forgotten (Issue #476, #588)
+- Client: fix segfault on mac when playback is paused (Issue #560)
- Server: fix crash if client disconnects during connect
### General
diff --git a/client/Makefile b/client/Makefile
index 12fc7b2b..b4508e13 100644
--- a/client/Makefile
+++ b/client/Makefile
@@ -14,7 +14,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see .
-VERSION = 0.19.0
+VERSION = 0.20.0
BIN = snapclient
ifeq ($(TARGET), FREEBSD)
diff --git a/client/controller.cpp b/client/controller.cpp
index 42acaded..c5ce045f 100644
--- a/client/controller.cpp
+++ b/client/controller.cpp
@@ -367,8 +367,9 @@ void Controller::worker()
}
});
- // // Do initial time sync with the server
+ // Do initial time sync with the server
sendTimeSyncMessage(50);
+ // Start receiver loop
getNextMessage();
}
else
diff --git a/client/controller.hpp b/client/controller.hpp
index d87c764c..94fb66dc 100644
--- a/client/controller.hpp
+++ b/client/controller.hpp
@@ -48,7 +48,7 @@ public:
// void stop();
private:
- using MdnsHandler = std::function;
+ using MdnsHandler = std::function;
void worker();
void reconnect();
void browseMdns(const MdnsHandler& handler);
diff --git a/client/snapclient.cpp b/client/snapclient.cpp
index 11fe8763..e82d5cfc 100644
--- a/client/snapclient.cpp
+++ b/client/snapclient.cpp
@@ -271,10 +271,7 @@ int main(int argc, char** argv)
daemon = std::make_unique(user, group, pidFile);
LOG(NOTICE, LOG_TAG) << "daemonizing" << std::endl;
daemon->daemonize();
- if (processPriority < -20)
- processPriority = -20;
- else if (processPriority > 19)
- processPriority = 19;
+ processPriority = std::min(std::max(-20, processPriority), 19);
if (processPriority != 0)
setpriority(PRIO_PROCESS, 0, processPriority);
LOG(NOTICE, LOG_TAG) << "daemon started" << std::endl;
diff --git a/debian/changelog b/debian/changelog
index 14c3e3fe..05ba14bd 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,9 +2,9 @@ snapcast (0.20.0-1) unstable; urgency=medium
* Features
-Client: Windows support (Issue #24)
- -Client: Add hardware mixer (Issue #318)
- -Client: Add "script" and "none" mixer (Issue #302)
- -Client: Add sharingmode for audio device (if supported)
+ -Client: add hardware mixer (Issue #318)
+ -Client: add "script" and "none" mixer (Issue #302)
+ -Client: add sharingmode for audio device (if supported)
-Logging: configurable sink and filters (Issue #30, #561, #122, #559)
-Librespot: add option "disable-audio-cache=[false|true]"
* Bugfixes
@@ -13,6 +13,7 @@ snapcast (0.20.0-1) unstable; urgency=medium
-Client: high CPU load and crash during playback (Issue #609)
-Client: improved handling of USB audio disconnects (Issue #64)
-Client: latency is forgotten (Issue #476, #588)
+ -Client: fix segfault on mac when playback is paused (Issue #560)
-Server: fix crash if client disconnects during connect
* General
-Client: use less threads and thus less ressources