Check that export-channel is not empty

This commit is contained in:
Robin Gareus 2023-04-04 01:35:27 +02:00
parent 473f575a05
commit 29c6817599
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
1 changed files with 2 additions and 0 deletions

View File

@ -370,6 +370,8 @@ RouteExportChannel::create_from_route (std::list<ExportChannelPtr>& result, std:
uint32_t n_audio = processor->input_streams ().n_audio ();
uint32_t n_midi = processor->input_streams ().n_midi ();
assert (n_audio + n_midi > 0);
std::shared_ptr<ProcessorRemover> remover (new ProcessorRemover (route, processor));
result.clear ();
for (uint32_t i = 0; i < n_audio; ++i) {