summaryrefslogtreecommitdiffstats
path: root/src/SampleQueue.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2014-03-07 10:46:36 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2014-03-07 10:46:36 +0100
commit7284422f3a907724af91de827b2d32220d0d4ba1 (patch)
treedda481445a21bce5f8fad471184e0131038840ef /src/SampleQueue.h
parent8d26f0804a03a222ca7b791f40ec51dba3b8162d (diff)
downloadODR-AudioEnc-7284422f3a907724af91de827b2d32220d0d4ba1.tar.gz
ODR-AudioEnc-7284422f3a907724af91de827b2d32220d0d4ba1.tar.bz2
ODR-AudioEnc-7284422f3a907724af91de827b2d32220d0d4ba1.zip
alsa-dabplus compiles
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;