summaryrefslogtreecommitdiff
path: root/streamer.c
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-01-27 19:55:48 +0100
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-01-27 19:55:48 +0100
commit3d030ccade41504430b383a286bf9916233d2b6d (patch)
treead1d3b1652e02134f2955e6fe1929351cf459523 /streamer.c
parent9cd3874c0eac44314c645f628dffced6e7926147 (diff)
allow float32-only decoder plugins
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);