summaryrefslogtreecommitdiff
path: root/streamer.c
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-01-31 18:39:03 +0100
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-01-31 18:39:03 +0100
commit2b9cc2f2d6acdea2f274e834b40935a04127cdd0 (patch)
tree350a0275262164db82d93a64e10919f06a69d290 /streamer.c
parentd1e517afa8d1984004e75e5cf84049c762e87f8e (diff)
don't resample when input samplerate matches output
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 b4f48b58..0e94a425 100644
--- a/streamer.c
+++ b/streamer.c
@@ -866,7 +866,7 @@ streamer_read_async (char *bytes, int size) {
nchannels = 2;
}
int samplerate = decoder->info.samplerate;
- if (decoder->info.samplerate == p_get_rate (), 0) {
+ if (decoder->info.samplerate == p_get_rate ()) {
// samplerate match
if (nchannels == 2) {
bytesread = decoder->read_int16 (bytes, size);