fix crash on export if no master bus is present in the session
This commit is contained in:
parent
65b6f8efad
commit
ee426ca223
@ -110,8 +110,10 @@ PortExportChannelSelector::fill_route_list ()
|
|||||||
|
|
||||||
/* Add master bus and then everything else */
|
/* Add master bus and then everything else */
|
||||||
|
|
||||||
ARDOUR::IO* master = _session->master_out()->output().get();
|
if (_session->master_out()) {
|
||||||
channel_view.add_route (master);
|
ARDOUR::IO* master = _session->master_out()->output().get();
|
||||||
|
channel_view.add_route (master);
|
||||||
|
}
|
||||||
|
|
||||||
for (RouteList::iterator it = routes.begin(); it != routes.end(); ++it) {
|
for (RouteList::iterator it = routes.begin(); it != routes.end(); ++it) {
|
||||||
if ((*it)->is_master () || (*it)->is_monitor ()) {
|
if ((*it)->is_master () || (*it)->is_monitor ()) {
|
||||||
|
@ -501,6 +501,8 @@ ExportProfileManager::init_channel_configs (XMLNodeList nodes)
|
|||||||
channel_configs.push_back (config);
|
channel_configs.push_back (config);
|
||||||
|
|
||||||
// Add master outs as default
|
// Add master outs as default
|
||||||
|
if (!session.master_out()) { return false; }
|
||||||
|
|
||||||
IO* master_out = session.master_out()->output().get();
|
IO* master_out = session.master_out()->output().get();
|
||||||
if (!master_out) { return false; }
|
if (!master_out) { return false; }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user