aboutsummaryrefslogtreecommitdiffstats
path: root/src/SampleQueue.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/SampleQueue.h')
-rw-r--r--src/SampleQueue.h6
1 files changed, 3 insertions, 3 deletions
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;