decoder/Bridge: move code to DecoderControl::SetReady()

This commit is contained in:
Max Kellermann
2016-12-03 14:20:51 +01:00
parent 9fb7cc796b
commit b3723274f7
3 changed files with 36 additions and 17 deletions

View File

@@ -254,6 +254,15 @@ struct DecoderControl {
return HasFailed();
}
/**
* Transition this obejct from DecoderState::START to
* DecoderState::DECODE.
*
* Caller must lock the object.
*/
void SetReady(const AudioFormat audio_format,
bool _seekable, SignedSongTime _duration);
/**
* Checks whether an error has occurred, and if so, rethrows
* it.