diff options
author | Max Kellermann <max@musicpd.org> | 2020-09-04 18:35:21 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2020-09-04 18:35:21 +0200 |
commit | 67c7116f058666fbcc050d6d879778f41665b447 (patch) | |
tree | 5660ae62bb3d751b0a1b928b3a1c144b28aa9f4a /src/decoder/plugins/SndfileDecoderPlugin.cxx | |
parent | 9aa432c07838256536c39b00d14c04462862b4fc (diff) | |
parent | db8b419b8c3aa738efb3fa7b5de7b2894ced6cde (diff) |
Merge branch 'v0.21.x' into master
Diffstat (limited to 'src/decoder/plugins/SndfileDecoderPlugin.cxx')
-rw-r--r-- | src/decoder/plugins/SndfileDecoderPlugin.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/decoder/plugins/SndfileDecoderPlugin.cxx b/src/decoder/plugins/SndfileDecoderPlugin.cxx index bde242c87..bf9451b0b 100644 --- a/src/decoder/plugins/SndfileDecoderPlugin.cxx +++ b/src/decoder/plugins/SndfileDecoderPlugin.cxx @@ -47,9 +47,7 @@ struct SndfileInputStream { size_t Read(void *buffer, size_t size) { /* libsndfile chokes on partial reads; therefore always force full reads */ - return decoder_read_full(client, is, buffer, size) - ? size - : 0; + return decoder_read_much(client, is, buffer, size); } }; |