summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2015-09-02 12:58:07 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2015-09-02 12:58:07 -0400
commit2f69ee8ec8ef9ec8011a1aab3795f1317331bc9d (patch)
treeecfc64aef9991fa1424f11b32ff8dc5cc9e9c8be /libs
parente91a0f7e11d33694d693df443c9cff4644c751b9 (diff)
a couple of debug output statements to help diagnose a crash, part 2
Diffstat (limited to 'libs')
-rw-r--r--libs/canvas/wave_view.cc10
1 files changed, 6 insertions, 4 deletions
diff --git a/libs/canvas/wave_view.cc b/libs/canvas/wave_view.cc
index e3377ab1d9..a82ae59d18 100644
--- a/libs/canvas/wave_view.cc
+++ b/libs/canvas/wave_view.cc
@@ -742,7 +742,11 @@ WaveView::draw_image (Cairo::RefPtr<Cairo::ImageSurface>& image, PeakData* _peak
boost::shared_ptr<WaveViewCache::Entry>
WaveView::cache_request_result (boost::shared_ptr<WaveViewThreadRequest> req) const
{
-
+ if (!req->image) {
+ cerr << "asked to cache null image!!!\n";
+ return boost::shared_ptr<WaveViewCache::Entry> ();
+ }
+
boost::shared_ptr<WaveViewCache::Entry> ret (new WaveViewCache::Entry (req->channel,
req->height,
req->amplitude,
@@ -1008,15 +1012,13 @@ WaveView::generate_image (boost::shared_ptr<WaveViewThreadRequest> req, bool in_
}
} else {
cerr << "Request stopped before image generation\n";
- }
+ }
if (in_render_thread && !req->should_stop()) {
DEBUG_TRACE (DEBUG::WaveView, string_compose ("done with request for %1 at %2 CR %3 req %4 range %5 .. %6\n", this, g_get_monotonic_time(), current_request, req, req->start, req->end));
const_cast<WaveView*>(this)->ImageReady (); /* emit signal */
}
- cerr << "Generate image done, image = " << req->image << endl;
-
return;
}