diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-07-08 09:57:33 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-07-08 09:57:33 +0200 |
commit | 561b6adce76dd209ebc547fcd98f525501742d97 (patch) | |
tree | 17f36fb2f9170b2108851e613b8b3f7100736410 /src/VLCInput.h | |
parent | 5774d9b236567767cc473a790290d41ac65e6600 (diff) | |
download | ODR-AudioEnc-561b6adce76dd209ebc547fcd98f525501742d97.tar.gz ODR-AudioEnc-561b6adce76dd209ebc547fcd98f525501742d97.tar.bz2 ODR-AudioEnc-561b6adce76dd209ebc547fcd98f525501742d97.zip |
Protect m_nowplaying with mutex
Diffstat (limited to 'src/VLCInput.h')
-rw-r--r-- | src/VLCInput.h | 3 |
1 files changed, 2 insertions, 1 deletions
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<uint8_t> m_current_buf; - mutable std::mutex m_queue_mutex; + std::mutex m_queue_mutex; std::deque<uint8_t> m_queue; std::string m_uri; @@ -138,6 +138,7 @@ class VLCInput std::future<bool> icy_text_written; + std::mutex m_nowplaying_mutex; std::string m_nowplaying; std::string m_nowplaying_previous; |