From 4614909ea6be21074ddd4a28e409922a4d024a18 Mon Sep 17 00:00:00 2001 From: Doug McLain Date: Mon, 9 Jun 2008 21:39:25 +0000 Subject: Fix for error loaing a 2input plugin following a mono to stereo splitter plugin on a mono track on the prefader box. git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3450 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/route.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libs') diff --git a/libs/ardour/route.cc b/libs/ardour/route.cc index f424740509..b4e963ebdc 100644 --- a/libs/ardour/route.cc +++ b/libs/ardour/route.cc @@ -1186,6 +1186,7 @@ Route::_reset_plugin_counts (uint32_t* err_streams) /* A: PreFader */ if (check_some_plugin_counts (insert_map[PreFader], n_inputs (), err_streams)) { + cerr << "Pre -- going to streamcount, err_streams = " << *err_streams << endl;//DEBUG goto streamcount; } @@ -1193,9 +1194,7 @@ Route::_reset_plugin_counts (uint32_t* err_streams) if (!insert_map[PreFader].empty()) { InsertCount& ic (insert_map[PreFader].back()); - if (ic.insert->can_do (n_inputs(), initial_streams) < 0) { - goto streamcount; - } + initial_streams = ic.insert->output_streams (); } else { initial_streams = n_inputs (); } @@ -1203,6 +1202,7 @@ Route::_reset_plugin_counts (uint32_t* err_streams) /* B: PostFader */ if (check_some_plugin_counts (insert_map[PostFader], initial_streams, err_streams)) { + cerr << "Post -- going to streamcount, err_streams = " << *err_streams << endl;//DEBUG goto streamcount; } -- cgit v1.2.3