summaryrefslogtreecommitdiff
path: root/gtk2_ardour/export_channel_selector.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2016-07-13 04:59:26 +0200
committerRobin Gareus <robin@gareus.org>2016-07-13 04:59:26 +0200
commit065d9434b9738e7544133f68b0d9f64b248c20d9 (patch)
tree219e061b9640ad9cfc2c5ec9ff121175b6f23347 /gtk2_ardour/export_channel_selector.cc
parent81ba187b1a7d129d26011b7c99eea9962ad877ee (diff)
fix stem-export of no-input busses/tracks
Diffstat (limited to 'gtk2_ardour/export_channel_selector.cc')
-rw-r--r--gtk2_ardour/export_channel_selector.cc13
1 files changed, 11 insertions, 2 deletions
diff --git a/gtk2_ardour/export_channel_selector.cc b/gtk2_ardour/export_channel_selector.cc
index 17c54c79a8..59720ecb3e 100644
--- a/gtk2_ardour/export_channel_selector.cc
+++ b/gtk2_ardour/export_channel_selector.cc
@@ -710,7 +710,7 @@ TrackExportChannelSelector::update_config()
continue;
}
- ExportProfileManager::ChannelConfigStatePtr state = manager->add_channel_config();
+ ExportProfileManager::ChannelConfigStatePtr state;
boost::shared_ptr<Route> route = row[track_cols.route];
@@ -722,16 +722,25 @@ TrackExportChannelSelector::update_config()
ExportChannelPtr channel (new PortExportChannel ());
PortExportChannel * pec = static_cast<PortExportChannel *> (channel.get());
pec->add_port(port);
+ if (!state) {
+ state = manager->add_channel_config();
+ }
state->config->register_channel(channel);
}
}
} else {
std::list<ExportChannelPtr> list;
RouteExportChannel::create_from_route (list, route);
+ if (list.size () == 0) {
+ continue;
+ }
+ state = manager->add_channel_config();
state->config->register_channels (list);
}
- state->config->set_name (route->name());
+ if (state) {
+ state->config->set_name (route->name());
+ }
}