fix stem-export of no-input busses/tracks
This commit is contained in:
parent
81ba187b1a
commit
065d9434b9
@ -710,7 +710,7 @@ TrackExportChannelSelector::update_config()
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
ExportProfileManager::ChannelConfigStatePtr state = manager->add_channel_config();
|
ExportProfileManager::ChannelConfigStatePtr state;
|
||||||
|
|
||||||
boost::shared_ptr<Route> route = row[track_cols.route];
|
boost::shared_ptr<Route> route = row[track_cols.route];
|
||||||
|
|
||||||
@ -722,16 +722,25 @@ TrackExportChannelSelector::update_config()
|
|||||||
ExportChannelPtr channel (new PortExportChannel ());
|
ExportChannelPtr channel (new PortExportChannel ());
|
||||||
PortExportChannel * pec = static_cast<PortExportChannel *> (channel.get());
|
PortExportChannel * pec = static_cast<PortExportChannel *> (channel.get());
|
||||||
pec->add_port(port);
|
pec->add_port(port);
|
||||||
|
if (!state) {
|
||||||
|
state = manager->add_channel_config();
|
||||||
|
}
|
||||||
state->config->register_channel(channel);
|
state->config->register_channel(channel);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
std::list<ExportChannelPtr> list;
|
std::list<ExportChannelPtr> list;
|
||||||
RouteExportChannel::create_from_route (list, route);
|
RouteExportChannel::create_from_route (list, route);
|
||||||
|
if (list.size () == 0) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
state = manager->add_channel_config();
|
||||||
state->config->register_channels (list);
|
state->config->register_channels (list);
|
||||||
}
|
}
|
||||||
|
|
||||||
state->config->set_name (route->name());
|
if (state) {
|
||||||
|
state->config->set_name (route->name());
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user