[input] Add Spotify input module

This commit is contained in:
ejurgensen
2016-12-29 00:39:23 +01:00
parent c92ebf9dfb
commit 79639c73ed
7 changed files with 161 additions and 202 deletions

View File

@@ -1097,9 +1097,9 @@ source_read(uint8_t *buf, int len, uint64_t rtptime)
return -1;
}
// if (ret == 0)
//TODO Underrun -> pause
if ((ret < 0) || (flags & INPUT_FLAG_EOF))
if (ret == 0)
sleep(1); // TODO Underrun -> proper pause
else if ((ret < 0) || (flags & INPUT_FLAG_EOF))
{
source_close(rtptime + BTOS(nbytes) - 1);