discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss-gnuradio] null source


From: Achilleas Anastasopoulos
Subject: [Discuss-gnuradio] null source
Date: Wed, 3 Feb 2016 11:23:03 -0500

The work function of null source is

-----------------------
int
    null_source_impl::work(int noutput_items,
                           gr_vector_const_void_star &input_items,
                           gr_vector_void_star &output_items)
    {
      void *optr;
      for(size_t n = 0; n < input_items.size(); n++) {   <===========
        optr = (void*)output_items[n];
        memset(optr, 0, noutput_items * output_signature()->sizeof_stream_item(n));
      }
      return noutput_items;
    }
------------------------------

shouldn't the for loop be :

for(size_t n = 0; n < output_items.size(); n++) {


Achilleas


reply via email to

[Prev in Thread] Current Thread [Next in Thread]