From 29c68175990bc4dd336e654e212c148cf6412926 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 4 Apr 2023 01:35:27 +0200 Subject: [PATCH] Check that export-channel is not empty --- libs/ardour/export_channel.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/ardour/export_channel.cc b/libs/ardour/export_channel.cc index c6d639d8d8..efe148a272 100644 --- a/libs/ardour/export_channel.cc +++ b/libs/ardour/export_channel.cc @@ -370,6 +370,8 @@ RouteExportChannel::create_from_route (std::list& 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 remover (new ProcessorRemover (route, processor)); result.clear (); for (uint32_t i = 0; i < n_audio; ++i) {