diff options
author | Robin Gareus <robin@gareus.org> | 2020-05-07 18:00:48 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2020-05-07 20:42:58 +0200 |
commit | f1dafe76321d076899c5d4749633c8dc3f1ba560 (patch) | |
tree | d8413437e1353e28c61f36286c490925a1117b18 /gtk2_ardour/rc_option_editor.cc | |
parent | d9caa7fd9a55e5b21a35971f17e26d8c26838a6b (diff) |
Prepare changing LTC Generator <IO> to <Port>
Diffstat (limited to 'gtk2_ardour/rc_option_editor.cc')
-rw-r--r-- | gtk2_ardour/rc_option_editor.cc | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/gtk2_ardour/rc_option_editor.cc b/gtk2_ardour/rc_option_editor.cc index b323c1c0e6..d7d8854ae7 100644 --- a/gtk2_ardour/rc_option_editor.cc +++ b/gtk2_ardour/rc_option_editor.cc @@ -1393,11 +1393,7 @@ private: if (!_shp->session()) { return; } - boost::shared_ptr<IO> ltc_io = _shp->session()->ltc_output_io(); - if (!ltc_io) { - return; - } - boost::shared_ptr<Port> ltc_port = ltc_io->nth (0); + boost::shared_ptr<Port> ltc_port = _shp->session()->ltc_output_port (); if (!ltc_port) { return; } @@ -1405,7 +1401,7 @@ private: return; } - ltc_io->disconnect (this); + ltc_port->disconnect_all (); if (!new_port.empty()) { ltc_port->connect (new_port); } @@ -1447,10 +1443,7 @@ private: std::string const& pn = _rc_config->get_ltc_output_port (); boost::shared_ptr<Port> ltc_port; if (_shp->session()) { - boost::shared_ptr<IO> ltc_io = _shp->session()->ltc_output_io(); - if (ltc_io) { - ltc_port = ltc_io->nth (0); - } + ltc_port = _shp->session()->ltc_output_port (); } PBD::Unwinder<bool> uw (_ignore_change, true); |