From 3b6300156b240e3daeab3cd34d1b937a20a657f2 Mon Sep 17 00:00:00 2001 From: Sampo Savolainen Date: Sun, 6 Jan 2008 21:01:09 +0000 Subject: [PATCH] Fix a crash under certain conditions: Make sure thre are enough passthru buffers when setting the state of the session. git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@2833 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/audio_diskstream.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/ardour/audio_diskstream.cc b/libs/ardour/audio_diskstream.cc index 6642cee369..346e973376 100644 --- a/libs/ardour/audio_diskstream.cc +++ b/libs/ardour/audio_diskstream.cc @@ -1963,6 +1963,7 @@ AudioDiskstream::set_state (const XMLNode& node) if (nchans > _n_channels) { add_channel (nchans - _n_channels); + IO::MoreOutputs(_n_channels); } else if (nchans < _n_channels) { -- 2.30.2