OggFlac & displayer fixes (see CHANGELOG) - release

This commit is contained in:
philippe44
2024-01-10 18:58:47 -08:00
parent b0d9e1668c
commit 55a8658f3a
8 changed files with 43 additions and 19 deletions

View File

@@ -121,6 +121,9 @@ static FLAC__StreamDecoderReadStatus read_cb(const FLAC__StreamDecoder *decoder,
_buf_inc_readp(streambuf, bytes);
UNLOCK_S;
// give some time for stream to acquire data otherwise flac will hammer us
if (!end && !bytes) usleep(100 * 1000);
*want = bytes;
return end ? FLAC__STREAM_DECODER_READ_STATUS_END_OF_STREAM : FLAC__STREAM_DECODER_READ_STATUS_CONTINUE;