summaryrefslogtreecommitdiffstats
path: root/src/VLCInput.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2015-05-04 11:16:28 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2015-05-04 11:16:59 +0200
commit6ed3918317cb9b20ece88a46daaccc52d974b7bd (patch)
treef95bf412f06260e20c62aa7fa799f42554105283 /src/VLCInput.h
parent957f67c0a5bf831ff743d03548e515ddc450e8cc (diff)
downloadfdk-aac-6ed3918317cb9b20ece88a46daaccc52d974b7bd.tar.gz
fdk-aac-6ed3918317cb9b20ece88a46daaccc52d974b7bd.tar.bz2
fdk-aac-6ed3918317cb9b20ece88a46daaccc52d974b7bd.zip
Replace boost by C++11
std::thread doesn't support interruption like boost::thread, which was used in the ALSA input. Everything else should be equivalent.
Diffstat (limited to 'src/VLCInput.h')
-rw-r--r--src/VLCInput.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/VLCInput.h b/src/VLCInput.h
index ec7c80e..048c931 100644
--- a/src/VLCInput.h
+++ b/src/VLCInput.h
@@ -27,9 +27,10 @@
#include <string>
#include <vector>
#include <deque>
+#include <thread>
+#include <mutex>
#include <vlc/vlc.h>
-#include <boost/thread/thread.hpp>
#include "SampleQueue.h"
@@ -93,7 +94,7 @@ class VLCInput
std::vector<uint8_t> m_current_buf;
- boost::mutex m_queue_mutex;
+ mutable std::mutex m_queue_mutex;
std::deque<uint8_t> m_queue;
std::string m_uri;