patch-libs_ardour_session_cc 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. $OpenBSD: patch-libs_ardour_session_cc,v 1.1 2016/03/20 11:58:32 ajacoutot Exp $
  2. Fix build with libsigc++ >=2.8.0
  3. --- libs/ardour/session.cc.orig Sun Mar 20 11:14:18 2016
  4. +++ libs/ardour/session.cc Sun Mar 20 11:16:06 2016
  5. @@ -1035,7 +1035,7 @@ Session::diskstream_playlist_changed (boost::weak_ptr<
  6. boost::shared_ptr<Playlist> playlist;
  7. if ((playlist = dstream->playlist()) != 0) {
  8. - playlist->LengthChanged.connect (mem_fun (this, &Session::playlist_length_changed));
  9. + playlist->LengthChanged.connect (mem_fun (*this, &Session::playlist_length_changed));
  10. }
  11. /* see comment in playlist_length_changed () */
  12. @@ -1174,9 +1174,9 @@ Session::set_auto_punch_location (Location* location)
  13. auto_punch_end_changed_connection.disconnect();
  14. auto_punch_changed_connection.disconnect();
  15. - auto_punch_start_changed_connection = location->start_changed.connect (mem_fun (this, &Session::auto_punch_start_changed));
  16. - auto_punch_end_changed_connection = location->end_changed.connect (mem_fun (this, &Session::auto_punch_end_changed));
  17. - auto_punch_changed_connection = location->changed.connect (mem_fun (this, &Session::auto_punch_changed));
  18. + auto_punch_start_changed_connection = location->start_changed.connect (mem_fun (*this, &Session::auto_punch_start_changed));
  19. + auto_punch_end_changed_connection = location->end_changed.connect (mem_fun (*this, &Session::auto_punch_end_changed));
  20. + auto_punch_changed_connection = location->changed.connect (mem_fun (*this, &Session::auto_punch_changed));
  21. location->set_auto_punch (true, this);
  22. @@ -1217,9 +1217,9 @@ Session::set_auto_loop_location (Location* location)
  23. auto_loop_end_changed_connection.disconnect();
  24. auto_loop_changed_connection.disconnect();
  25. - auto_loop_start_changed_connection = location->start_changed.connect (mem_fun (this, &Session::auto_loop_changed));
  26. - auto_loop_end_changed_connection = location->end_changed.connect (mem_fun (this, &Session::auto_loop_changed));
  27. - auto_loop_changed_connection = location->changed.connect (mem_fun (this, &Session::auto_loop_changed));
  28. + auto_loop_start_changed_connection = location->start_changed.connect (mem_fun (*this, &Session::auto_loop_changed));
  29. + auto_loop_end_changed_connection = location->end_changed.connect (mem_fun (*this, &Session::auto_loop_changed));
  30. + auto_loop_changed_connection = location->changed.connect (mem_fun (*this, &Session::auto_loop_changed));
  31. location->set_auto_loop (true, this);
  32. @@ -1823,7 +1823,7 @@ Session::new_audio_track (int input_channels, int outp
  33. track->audio_diskstream()->non_realtime_input_change();
  34. - track->DiskstreamChanged.connect (mem_fun (this, &Session::resort_routes));
  35. + track->DiskstreamChanged.connect (mem_fun (*this, &Session::resort_routes));
  36. track->set_remote_control_id (control_id);
  37. ++control_id;
  38. @@ -3060,7 +3060,7 @@ Session::add_source (boost::shared_ptr<Source> source)
  39. }
  40. if (result.second) {
  41. - source->GoingAway.connect (sigc::bind (mem_fun (this, &Session::remove_source), boost::weak_ptr<Source> (source)));
  42. + source->GoingAway.connect (sigc::bind (mem_fun (*this, &Session::remove_source), boost::weak_ptr<Source> (source)));
  43. set_dirty();
  44. }