From: Steinar H. Gunderson Date: Sun, 8 May 2016 09:42:12 +0000 (+0200) Subject: Fix a situation where first_output would never get set. X-Git-Tag: 1.3.0~15 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=2ceca68e8e7efa732fcad167bae84e6a5d9a525a;p=nageru Fix a situation where first_output would never get set. --- diff --git a/resampling_queue.cpp b/resampling_queue.cpp index 9e8fb7d..dec8599 100644 --- a/resampling_queue.cpp +++ b/resampling_queue.cpp @@ -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.