From 561b6adce76dd209ebc547fcd98f525501742d97 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Fri, 8 Jul 2016 09:57:33 +0200 Subject: Protect m_nowplaying with mutex --- src/VLCInput.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/VLCInput.h') diff --git a/src/VLCInput.h b/src/VLCInput.h index ad23c4d..1ea0bee 100644 --- a/src/VLCInput.h +++ b/src/VLCInput.h @@ -119,7 +119,7 @@ class VLCInput std::vector m_current_buf; - mutable std::mutex m_queue_mutex; + std::mutex m_queue_mutex; std::deque m_queue; std::string m_uri; @@ -138,6 +138,7 @@ class VLCInput std::future icy_text_written; + std::mutex m_nowplaying_mutex; std::string m_nowplaying; std::string m_nowplaying_previous; -- cgit v1.2.3