[player] Fix commit 3e9f8ef, input_resume() must be non-blocking (possibly issue #773)

This commit is contained in:
ejurgensen
2019-07-14 00:02:50 +02:00
parent 2f3ec36c6a
commit 5307c6d94b
3 changed files with 36 additions and 17 deletions

View File

@@ -196,17 +196,6 @@ input_buffer_full_cb(input_cb cb);
int
input_seek(uint32_t item_id, int seek_ms);
/*
* Same as input_seek(), except if the item is already being read we don't do
* anything (no flush & seek)
*
* @in item_id Queue item id to start playing
* @in seek_ms Position to start playing
* @return Actual seek position if seekable, 0 otherwise, -1 on error
*/
int
input_resume(uint32_t item_id, int seek_ms);
/*
* Same as input_seek(), just non-blocking and does not offer seek.
*
@@ -215,6 +204,16 @@ input_resume(uint32_t item_id, int seek_ms);
void
input_start(uint32_t item_id);
/*
* Same as input_seek(), but non-blocking and if the item is already being read
* we don't do anything (no flush & seek)
*
* @in item_id Queue item id to start playing
* @in seek_ms Position to start playing
*/
void
input_resume(uint32_t item_id, int seek_ms);
/*
* Stops the input and clears everything. Flushes the input buffer.
*/