assert() to help find some possible causes of #2991. Fix some confusion with GTK...
[ardour.git] / libs / ardour / audiosource.cc
index fd481c973009f2cfb0912e42e2e32c3a596c00b8..0c820eed4d29b9c923fb0a14150b2c978b52b305 100644 (file)
@@ -149,7 +149,7 @@ AudioSource::update_length (sframes_t pos, sframes_t cnt)
  ***********************************************************************/
 
 bool
-AudioSource::peaks_ready (boost::function<void()> doThisWhenReady, boost::signals2::connection& connect_here_if_not) const
+AudioSource::peaks_ready (boost::function<void()> doThisWhenReady, Connection& connect_here_if_not, EventLoop* event_loop) const
 {
        bool ret;
        Glib::Mutex::Lock lm (_peaks_ready_lock);
@@ -159,7 +159,7 @@ AudioSource::peaks_ready (boost::function<void()> doThisWhenReady, boost::signal
        */
 
        if (!(ret = _peaks_built)) {
-               connect_here_if_not = PeaksReady.connect (doThisWhenReady);
+               PeaksReady.connect (connect_here_if_not, doThisWhenReady, event_loop);
        }
 
        return ret;