summaryrefslogtreecommitdiff
path: root/src/decoder/plugins/SndfileDecoderPlugin.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2020-09-04 18:35:21 +0200
committerMax Kellermann <max@musicpd.org>2020-09-04 18:35:21 +0200
commit67c7116f058666fbcc050d6d879778f41665b447 (patch)
tree5660ae62bb3d751b0a1b928b3a1c144b28aa9f4a /src/decoder/plugins/SndfileDecoderPlugin.cxx
parent9aa432c07838256536c39b00d14c04462862b4fc (diff)
parentdb8b419b8c3aa738efb3fa7b5de7b2894ced6cde (diff)
Merge branch 'v0.21.x' into master
Diffstat (limited to 'src/decoder/plugins/SndfileDecoderPlugin.cxx')
-rw-r--r--src/decoder/plugins/SndfileDecoderPlugin.cxx4
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);
}
};