From 3b26dd2fd2056ede5abd6e556e2f91ed568d0a27 Mon Sep 17 00:00:00 2001 From: Max Date: Fri, 22 Dec 2017 18:29:43 -0500 Subject: [PATCH] vocoder_impl --- op25/gr-op25_repeater/lib/vocoder_impl.cc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/op25/gr-op25_repeater/lib/vocoder_impl.cc b/op25/gr-op25_repeater/lib/vocoder_impl.cc index 967dde4..935c243 100644 --- a/op25/gr-op25_repeater/lib/vocoder_impl.cc +++ b/op25/gr-op25_repeater/lib/vocoder_impl.cc @@ -139,13 +139,14 @@ vocoder_impl::general_work_encode (int noutput_items, const int fragments_available = output_queue.size() / FRAGMENT_SIZE; const int nsamples_consume = std::min(ninput_items[0], std::max(0,(noutput_fragments - fragments_available) * 9 * 160)); - if (nsamples_consume > 0) + if (nsamples_consume > 0) { p1voice_encode.compress_samp(in, nsamples_consume); - // Tell runtime system how many input items we consumed on - // each input stream. + // Tell runtime system how many input items we consumed on + // each input stream. - consume_each (nsamples_consume); + consume_each (nsamples_consume); + } if (opt_udp_port > 0) // in udp option, we are a gr sink only return 0;