summaryrefslogtreecommitdiff
path: root/streamer.c
diff options
context:
space:
mode:
Diffstat (limited to 'streamer.c')
-rw-r--r--streamer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/streamer.c b/streamer.c
index 2b05bdde..0b31eae1 100644
--- a/streamer.c
+++ b/streamer.c
@@ -722,7 +722,7 @@ streamer_read_async (char *bytes, int size) {
if (str_current_decoder->samplerate != -1) {
int nchannels = str_current_decoder->channels;
int samplerate = str_current_decoder->samplerate;
- if (str_current_decoder->samplerate == p_get_rate ()) {
+ if (str_current_decoder->samplerate == p_get_rate () && decoder->read_int16) {
// samplerate match
if (str_current_decoder->channels == 2) {
bytesread = decoder->read_int16 (str_current_decoder, bytes, size);