Fix for error loaing a 2input plugin following a mono to stereo splitter plugin on...
authorDoug McLain <doug@nostar.net>
Mon, 9 Jun 2008 21:39:25 +0000 (21:39 +0000)
committerDoug McLain <doug@nostar.net>
Mon, 9 Jun 2008 21:39:25 +0000 (21:39 +0000)
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3450 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/route.cc

index f42474050983f523965eca130db899cc430f76d3..b4e963ebdcfb3124c2f686044490faafdc44603e 100644 (file)
@@ -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;
        }