fix crash on export if no master bus is present in the session

This commit is contained in:
Robin Gareus 2013-05-06 00:15:48 +02:00
parent 65b6f8efad
commit ee426ca223
2 changed files with 6 additions and 2 deletions

View File

@ -110,8 +110,10 @@ PortExportChannelSelector::fill_route_list ()
/* Add master bus and then everything else */
ARDOUR::IO* master = _session->master_out()->output().get();
channel_view.add_route (master);
if (_session->master_out()) {
ARDOUR::IO* master = _session->master_out()->output().get();
channel_view.add_route (master);
}
for (RouteList::iterator it = routes.begin(); it != routes.end(); ++it) {
if ((*it)->is_master () || (*it)->is_monitor ()) {

View File

@ -501,6 +501,8 @@ ExportProfileManager::init_channel_configs (XMLNodeList nodes)
channel_configs.push_back (config);
// Add master outs as default
if (!session.master_out()) { return false; }
IO* master_out = session.master_out()->output().get();
if (!master_out) { return false; }