X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fardour%2Fsession_rtevents.cc;h=00d966acaae62d4c92cc006a1c4b6d1123969127;hb=6946bdc0830c9f0971d2cd0d54b27e343c54d96a;hp=8dba60f0e5cbe0017d423d80c2bad63d96a29b09;hpb=97f0415130ec9db02d449a83dbfa3969b975b529;p=ardour.git diff --git a/libs/ardour/session_rtevents.cc b/libs/ardour/session_rtevents.cc index 8dba60f0e5..00d966acaa 100644 --- a/libs/ardour/session_rtevents.cc +++ b/libs/ardour/session_rtevents.cc @@ -27,7 +27,7 @@ #include "ardour/track.h" #include "ardour/vca_manager.h" -#include "i18n.h" +#include "pbd/i18n.h" using namespace std; using namespace PBD; @@ -37,7 +37,9 @@ using namespace Glib; void Session::set_controls (boost::shared_ptr cl, double val, Controllable::GroupControlDisposition gcd) { - std::cerr << "Session::set_controls called on " << cl->size() << " controls, group = " << enum_2_string (gcd) << std::endl; + if (cl->empty()) { + return; + } for (ControlList::iterator ci = cl->begin(); ci != cl->end(); ++ci) { /* as of july 2017 this is a no-op for everything except record enable */ @@ -50,6 +52,10 @@ Session::set_controls (boost::shared_ptr cl, double val, Controllab void Session::set_control (boost::shared_ptr ac, double val, Controllable::GroupControlDisposition gcd) { + if (!ac) { + return; + } + boost::shared_ptr cl (new ControlList); cl->push_back (ac); set_controls (cl, val, gcd);