]> git.sesse.net Git - nageru/blobdiff - resampling_queue.cpp
Fix a situation where first_output would never get set.
[nageru] / 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.