summaryrefslogtreecommitdiff
path: root/src/audiocacheeventhandler.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2016-01-28 08:53:35 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2016-01-28 08:53:35 +0100
commitc708ca4491adadd3994b625e1bb4b528eb15cd7c (patch)
tree923fe4ff947ce2b714bc7258b863c5e5b886fa41 /src/audiocacheeventhandler.cc
parent1662fa8a8197e62b9df3ce5ecc6f1032800a07fe (diff)
Added debug
Diffstat (limited to 'src/audiocacheeventhandler.cc')
-rw-r--r--src/audiocacheeventhandler.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/audiocacheeventhandler.cc b/src/audiocacheeventhandler.cc
index 01db796..ccaf665 100644
--- a/src/audiocacheeventhandler.cc
+++ b/src/audiocacheeventhandler.cc
@@ -165,6 +165,8 @@ void AudioCacheEventHandler::pushCloseEvent(cacheid_t id)
void AudioCacheEventHandler::setChunkSize(size_t chunksize)
{
+ DEBUG(cache, "%s\n", __PRETTY_FUNCTION__);
+
// We should already locked when this method is called.
assert(!mutex.try_lock());
@@ -173,12 +175,18 @@ void AudioCacheEventHandler::setChunkSize(size_t chunksize)
return;
}
+ DEBUG(cache, "1)\n");
+
// Remove all events from event queue.
clearEvents();
+ DEBUG(cache, "2)\n");
+
// Skip all active cacheids and make their buffers point at nodata.
idManager.disableActive();
+ DEBUG(cache, "3)\n");
+
this->chunksize = chunksize;
}