From 2b9cc2f2d6acdea2f274e834b40935a04127cdd0 Mon Sep 17 00:00:00 2001 From: Alexey Yakovenko Date: Sun, 31 Jan 2010 18:39:03 +0100 Subject: don't resample when input samplerate matches output --- streamer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'streamer.c') 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); -- cgit v1.2.3