discuss-gnuradio
[Top][All Lists]
Advanced

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

[Discuss-gnuradio] Bug in 'gr_tagged_file_sink.cc'


From: Daniel Bartel
Subject: [Discuss-gnuradio] Bug in 'gr_tagged_file_sink.cc'
Date: Wed, 07 Sep 2011 11:16:26 +0200

Hi,

I found a bug in the
'gr_tagged_file_sink.cc' file during my work on a burst detection.

Line 203 should be changed to:
203   int count = fwrite (&inbuf[d_itemsize*idx], d_itemsize, noutput_items-idx, d_handle);

The original code was:
202   if(d_state == IN_BURST) {
203   int count = fwrite (&inbuf[idx], d_itemsize, noutput_items-idx, d_handle);
204       if (count == 0) {
205         if(ferror(d_handle)) {
206           perror("gr_tagged_file_sink: error writing file");
207         }
208       }
209   idx = noutput_items;
210   }

 
 

Daniel

reply via email to

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