]> git.sesse.net Git - nageru/commitdiff
Fix a situation where first_output would never get set.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 8 May 2016 09:42:12 +0000 (11:42 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 8 May 2016 09:42:21 +0000 (11:42 +0200)
resampling_queue.cpp

index 9e8fb7d58da6d85049c3a895780c9bc2eed8578b..dec8599661e8658d6730d4be4b2946df46807fa9 100644 (file)
@@ -95,8 +95,8 @@ bool ResamplingQueue::get_output_samples(double pts, float *samples, ssize_t num
                }
                total_consumed_samples -= delay_samples_to_add;  // Equivalent to increasing k_a0 and k_a1.
                err += delay_samples_to_add;
-               first_output = false;
        }
+       first_output = false;
 
        // Compute loop filter coefficients for the two filters. We need to compute them
        // every time, since they depend on the number of samples the user asked for.