aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/outputBuffer.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/outputBuffer.c b/src/outputBuffer.c
index 2b06ae529..d3a3ef464 100644
--- a/src/outputBuffer.c
+++ b/src/outputBuffer.c
@@ -41,18 +41,18 @@ void clearOutputBuffer(OutputBuffer * cb)
{
int currentSet = 1;
- currentChunk = -1;
cb->end = cb->begin;
/* be sure to reset metaChunkSets cause we are skipping over audio
* audio chunks, and thus skipping over metadata */
- if (sendMetaChunk == 0 && currentMetaChunk >= 0) {
+ if (currentChunk >= 0 && sendMetaChunk == 0 && currentMetaChunk >= 0) {
currentSet = cb->metaChunkSet[currentChunk];
}
clearAllMetaChunkSets(cb);
- if (sendMetaChunk == 0 && currentMetaChunk >= 0) {
+ if (currentChunk >= 0 && sendMetaChunk == 0 && currentMetaChunk >= 0) {
cb->metaChunkSet[currentChunk] = currentSet;
}
+ currentChunk = -1;
}
void flushOutputBuffer(OutputBuffer * cb)