summaryrefslogtreecommitdiffstats
path: root/src/audio_core/stream.cpp
diff options
context:
space:
mode:
authorChloe Marcec <dmarcecguzman@gmail.com>2020-11-17 05:40:19 +0100
committerChloe Marcec <dmarcecguzman@gmail.com>2020-11-17 05:40:19 +0100
commit908d3c56793ee67dccd0d370b175c4937420053f (patch)
tree5a29b03bf2689219a7c686cc5b9b38db0d996322 /src/audio_core/stream.cpp
parentaudren: Make use of nodiscard, rework downmixing, release all buffers (diff)
downloadyuzu-908d3c56793ee67dccd0d370b175c4937420053f.tar
yuzu-908d3c56793ee67dccd0d370b175c4937420053f.tar.gz
yuzu-908d3c56793ee67dccd0d370b175c4937420053f.tar.bz2
yuzu-908d3c56793ee67dccd0d370b175c4937420053f.tar.lz
yuzu-908d3c56793ee67dccd0d370b175c4937420053f.tar.xz
yuzu-908d3c56793ee67dccd0d370b175c4937420053f.tar.zst
yuzu-908d3c56793ee67dccd0d370b175c4937420053f.zip
Diffstat (limited to 'src/audio_core/stream.cpp')
-rw-r--r--src/audio_core/stream.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/audio_core/stream.cpp b/src/audio_core/stream.cpp
index 3f11b84ae..41bc2f4d6 100644
--- a/src/audio_core/stream.cpp
+++ b/src/audio_core/stream.cpp
@@ -138,6 +138,7 @@ std::vector<Buffer::Tag> Stream::GetTagsAndReleaseBuffers(std::size_t max_count)
std::vector<Buffer::Tag> Stream::GetTagsAndReleaseBuffers() {
std::vector<Buffer::Tag> tags;
+ tags.reserve(released_buffers.size());
while (!released_buffers.empty()) {
tags.push_back(released_buffers.front()->GetTag());
released_buffers.pop();