Commit 0e5aeb84 authored by Sebastian's avatar Sebastian Committed by Sebastian

Using stop instead of destructor for teardown

parent 93236942
......@@ -150,7 +150,27 @@ namespace gr
noaa_apt_sink_impl::~noaa_apt_sink_impl () {
}
bool
noaa_apt_sink_impl::stop () {
auto buf_full_image = d_full_image.get_pixbuf();
auto buf_left_image = d_left_image.get_pixbuf();
auto buf_right_image = d_right_image.get_pixbuf();
d_full_image = png::image<png::gray_pixel>(d_width, d_current_y + 1);
d_full_image.set_pixbuf(buf_full_image);
d_left_image = png::image<png::gray_pixel>(d_width/2, d_current_y + 1);
d_left_image .set_pixbuf(buf_left_image);
d_right_image = png::image<png::gray_pixel>(d_width/2, d_current_y + 1);
d_right_image.set_pixbuf(buf_right_image);
write_images();
return true;
}
......
......@@ -70,6 +70,9 @@ namespace gr
work (int noutput_items, gr_vector_const_void_star &input_items,
gr_vector_void_star &output_items);
bool
stop ();
private:
// Generate empty images and filenames to save them to
void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment