a couple of debug output statements to help diagnose a crash

This commit is contained in:
Paul Davis 2015-09-02 12:24:37 -04:00
parent 2e96b62a1e
commit e91a0f7e11

View file

@ -1006,6 +1006,8 @@ WaveView::generate_image (boost::shared_ptr<WaveViewThreadRequest> req, bool in_
} else { } else {
draw_absent_image (req->image, peaks.get(), n_peaks); draw_absent_image (req->image, peaks.get(), n_peaks);
} }
} else {
cerr << "Request stopped before image generation\n";
} }
if (in_render_thread && !req->should_stop()) { if (in_render_thread && !req->should_stop()) {
@ -1013,6 +1015,8 @@ WaveView::generate_image (boost::shared_ptr<WaveViewThreadRequest> req, bool in_
const_cast<WaveView*>(this)->ImageReady (); /* emit signal */ const_cast<WaveView*>(this)->ImageReady (); /* emit signal */
} }
cerr << "Generate image done, image = " << req->image << endl;
return; return;
} }