possible fix for crashes related to vanishing waveviews (and if it doesn't fix anythi...
authorPaul Davis <paul@linuxaudiosystems.com>
Thu, 11 Jun 2015 02:26:58 +0000 (22:26 -0400)
committerPaul Davis <paul@linuxaudiosystems.com>
Thu, 11 Jun 2015 02:26:58 +0000 (22:26 -0400)
libs/canvas/wave_view.cc

index ebcae314aaf02c062f31b0ba4570886f79a2a673..111bf73f27ff10cc857a6f64264e367045c8f7fd 100644 (file)
@@ -95,7 +95,7 @@ WaveView::WaveView (Canvas* c, boost::shared_ptr<ARDOUR::AudioRegion> region)
        VisualPropertiesChanged.connect_same_thread (invalidation_connection, boost::bind (&WaveView::handle_visual_property_change, this));
        ClipLevelChanged.connect_same_thread (invalidation_connection, boost::bind (&WaveView::handle_clip_level_change, this));
 
-       ImageReady.connect (image_ready_connection, MISSING_INVALIDATOR, boost::bind (&WaveView::image_ready, this), gui_context());
+       ImageReady.connect (image_ready_connection, invalidator (*this), boost::bind (&WaveView::image_ready, this), gui_context());
 }
 
 WaveView::WaveView (Item* parent, boost::shared_ptr<ARDOUR::AudioRegion> region)
@@ -123,7 +123,7 @@ WaveView::WaveView (Item* parent, boost::shared_ptr<ARDOUR::AudioRegion> region)
        VisualPropertiesChanged.connect_same_thread (invalidation_connection, boost::bind (&WaveView::handle_visual_property_change, this));
        ClipLevelChanged.connect_same_thread (invalidation_connection, boost::bind (&WaveView::handle_clip_level_change, this));
 
-       ImageReady.connect (image_ready_connection, MISSING_INVALIDATOR, boost::bind (&WaveView::image_ready, this), gui_context());
+       ImageReady.connect (image_ready_connection, invalidator (*this), boost::bind (&WaveView::image_ready, this), gui_context());
 }
 
 WaveView::~WaveView ()