aboutsummaryrefslogtreecommitdiffstats
path: root/src/output/MultipleOutputs.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-29 09:23:57 +0100
committerMax Kellermann <max@duempel.org>2014-01-29 09:23:57 +0100
commitaf716057699c22cc3b553ee0e5bbd403b1478607 (patch)
tree7ef4e7f532ad8415a7e59dccbc211fcb9eb172cc /src/output/MultipleOutputs.cxx
parent4657a3bd0fd97583e23cd65b80db71a71345fc13 (diff)
downloadmpd-af716057699c22cc3b553ee0e5bbd403b1478607.tar.gz
mpd-af716057699c22cc3b553ee0e5bbd403b1478607.tar.xz
mpd-af716057699c22cc3b553ee0e5bbd403b1478607.zip
output: rename "chunk" to "current_chunk"
Diffstat (limited to 'src/output/MultipleOutputs.cxx')
-rw-r--r--src/output/MultipleOutputs.cxx15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/output/MultipleOutputs.cxx b/src/output/MultipleOutputs.cxx
index 5d09b1733..66390f24d 100644
--- a/src/output/MultipleOutputs.cxx
+++ b/src/output/MultipleOutputs.cxx
@@ -264,17 +264,18 @@ chunk_is_consumed_in(const AudioOutput *ao,
if (!ao->open)
return true;
- if (ao->chunk == nullptr)
+ if (ao->current_chunk == nullptr)
return false;
- assert(chunk == ao->chunk || pipe->Contains(ao->chunk));
+ assert(chunk == ao->current_chunk ||
+ pipe->Contains(ao->current_chunk));
- if (chunk != ao->chunk) {
+ if (chunk != ao->current_chunk) {
assert(chunk->next != nullptr);
return true;
}
- return ao->chunk_finished && chunk->next == nullptr;
+ return ao->current_chunk_finished && chunk->next == nullptr;
}
bool
@@ -309,9 +310,9 @@ MultipleOutputs::ClearTailChunk(gcc_unused const struct music_chunk *chunk,
continue;
}
- assert(ao->chunk == chunk);
- assert(ao->chunk_finished);
- ao->chunk = nullptr;
+ assert(ao->current_chunk == chunk);
+ assert(ao->current_chunk_finished);
+ ao->current_chunk = nullptr;
}
}