summaryrefslogtreecommitdiff
path: root/src/audiocachefile.cc
diff options
context:
space:
mode:
authorAndré Nusser <andre.nusser@googlemail.com>2016-01-29 16:56:10 +0100
committerAndré Nusser <andre.nusser@googlemail.com>2016-01-29 16:56:10 +0100
commita0fbb86a492c3f8129e358ea3eb07e32995bb973 (patch)
tree57f5e1d6d079f336c23a7f4bcd30a2d781718f2a /src/audiocachefile.cc
parentbbdde7f2d3c25e0fdc7c9e34c6dafcc8419dab3b (diff)
wip ...
Diffstat (limited to 'src/audiocachefile.cc')
-rw-r--r--src/audiocachefile.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/audiocachefile.cc b/src/audiocachefile.cc
index 0955b25..91fcecf 100644
--- a/src/audiocachefile.cc
+++ b/src/audiocachefile.cc
@@ -130,25 +130,25 @@ AudioCacheFile& AudioCacheFiles::getFile(const std::string& filename)
{
std::lock_guard<std::mutex> lock(mutex);
- AudioCacheFile* cacheAudioFile = nullptr;
+ AudioCacheFile* cache_audio_file = nullptr;
auto it = audiofiles.find(filename);
if(it == audiofiles.end())
{
- cacheAudioFile = new AudioCacheFile(filename, read_buffer);
- audiofiles.insert(std::make_pair(filename, cacheAudioFile));
+ cache_audio_file = new AudioCacheFile(filename, read_buffer);
+ audiofiles.insert(std::make_pair(filename, cache_audio_file));
}
else
{
- cacheAudioFile = it->second;
+ cache_audio_file = it->second;
}
- assert(cacheAudioFile);
+ assert(cache_audio_file);
// Increase ref count.
- ++cacheAudioFile->ref;
+ ++cache_audio_file->ref;
- return *cacheAudioFile;
+ return *cache_audio_file;
}
void AudioCacheFiles::releaseFile(const std::string& filename)