diff options
Diffstat (limited to 'gr-network/lib/udp_source_impl.cc')
-rw-r--r-- | gr-network/lib/udp_source_impl.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gr-network/lib/udp_source_impl.cc b/gr-network/lib/udp_source_impl.cc index 3b89e87bea..1c1aec4177 100644 --- a/gr-network/lib/udp_source_impl.cc +++ b/gr-network/lib/udp_source_impl.cc @@ -224,7 +224,7 @@ int udp_source_impl::work(int noutput_items, unsigned int num_requested = noutput_items * d_block_size; // quick exit if nothing to do - if ((bytes_available == 0) && (d_localqueue->size() == 0)) { + if ((bytes_available == 0) && (d_localqueue->empty())) { underrun_counter++; d_partial_frame_counter = 0; if (d_source_zeros) { @@ -288,7 +288,7 @@ int udp_source_impl::work(int noutput_items, // This is just a safety to clear in the case there's a hanging partial // packet. If we've lingered through a number of calls and we still don't // have any data, clear the stale data. - while (d_localqueue->size() > 0) + while (!d_localqueue->empty()) d_localqueue->pop_front(); d_partial_frame_counter = 0; |