decoder/API: move part of decoder_check_cancel_read() into class DecoderBridge

This commit is contained in:
Max Kellermann
2016-11-21 22:07:03 +01:00
parent 8c342a764b
commit 2718f4c333
3 changed files with 30 additions and 19 deletions

View File

@@ -107,6 +107,15 @@ public:
~DecoderBridge();
/**
* Should be read operation be cancelled? That is the case when the
* player thread has sent a command such as "STOP".
*
* Caller must lock the #DecoderControl object.
*/
gcc_pure
bool CheckCancelRead() const;
/**
* Returns the current chunk the decoder writes to, or allocates a new
* chunk if there is none.