MusicPipe: eliminate the unused MusicBuffer reference

This requires re-adding the reference to struct DecoderControl, which
was removed recently by commit
9f14e7a98d
This commit is contained in:
Max Kellermann
2018-06-23 18:04:09 +02:00
parent 076be809c2
commit 2be905b2e2
8 changed files with 17 additions and 42 deletions

View File

@@ -221,19 +221,16 @@ MultipleOutputs::Play(MusicChunkPtr chunk)
}
void
MultipleOutputs::Open(const AudioFormat audio_format,
MusicBuffer &buffer)
MultipleOutputs::Open(const AudioFormat audio_format)
{
bool ret = false, enabled = false;
assert(pipe == nullptr || &pipe->GetBuffer() == &buffer);
/* the audio format must be the same as existing chunks in the
pipe */
assert(pipe == nullptr || pipe->CheckFormat(audio_format));
if (pipe == nullptr)
pipe = new MusicPipe(buffer);
pipe = new MusicPipe();
else
/* if the pipe hasn't been cleared, the the audio
format must not have changed */