From 7284422f3a907724af91de827b2d32220d0d4ba1 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Fri, 7 Mar 2014 10:46:36 +0100 Subject: alsa-dabplus compiles --- src/SampleQueue.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/SampleQueue.h') diff --git a/src/SampleQueue.h b/src/SampleQueue.h index fddc3a4..d00b8f9 100644 --- a/src/SampleQueue.h +++ b/src/SampleQueue.h @@ -52,10 +52,10 @@ public: return new_size; } - bool empty() const + size_t size() const { boost::mutex::scoped_lock lock(m_mutex); - return m_queue.empty(); + return m_queue.size(); } /* Get len elements, place them into the buf array @@ -89,7 +89,7 @@ public: ret = len; - m_queue.erase(m_queue.front(), m_queue.front() + len); + m_queue.erase(m_queue.begin(), m_queue.begin() + len); } return ret; -- cgit v1.2.3