output/Source: un-inline Cancel()

This commit is contained in:
Max Kellermann 2017-01-11 15:39:00 +01:00
parent 27c7891169
commit 79726940dc
2 changed files with 8 additions and 5 deletions

View File

@ -70,6 +70,13 @@ AudioOutputSource::Close()
CloseFilter();
}
void
AudioOutputSource::Cancel()
{
current_chunk = nullptr;
pipe.Cancel();
}
void
AudioOutputSource::OpenFilter(AudioFormat audio_format,
PreparedFilter *prepared_replay_gain_filter,

View File

@ -139,11 +139,7 @@ public:
PreparedFilter *prepared_filter);
void Close();
void Cancel() {
current_chunk = nullptr;
pipe.Cancel();
}
void Cancel();
/**
* Ensure that ReadTag() or PeekData() return any input.