diff options
Diffstat (limited to '')
-rw-r--r-- | src/inputPlugins/oggflac_plugin.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/inputPlugins/oggflac_plugin.c b/src/inputPlugins/oggflac_plugin.c index 637e4ac5f..f56a6b5ec 100644 --- a/src/inputPlugins/oggflac_plugin.c +++ b/src/inputPlugins/oggflac_plugin.c @@ -47,14 +47,7 @@ static OggFLAC__SeekableStreamDecoderReadStatus of_read_cb(const FlacData *data = (FlacData *) fdata; size_t r; - while (1) { - r = readFromInputStream(data->inStream, (void *)buf, 1, *bytes); - if (r == 0 && !inputStreamAtEOF(data->inStream) && - decoder_get_command(data->decoder) != DECODE_COMMAND_STOP) - my_usleep(10000); - else - break; - } + r = decoder_read(data->decoder, data->inStream, (void *)buf, *bytes); *bytes = r; if (r == 0 && !inputStreamAtEOF(data->inStream) && |