mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-07 14:15:46 +01:00
Make sure we notice when an IO's port count is reduced as well as when it's increased. Fixes an assertion failure when removing a port from an IO with 3 existing ports.
git-svn-id: svn://localhost/ardour2/trunk@2537 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
cf1adb02db
commit
796bfc025e
5 changed files with 25 additions and 20 deletions
|
|
@ -63,7 +63,7 @@ PluginInsert::PluginInsert (Session& s, boost::shared_ptr<Plugin> plug, Placemen
|
|||
|
||||
{
|
||||
Glib::Mutex::Lock em (_session.engine().process_lock());
|
||||
IO::MoreChannels (max(input_streams(), output_streams()));
|
||||
IO::PortCountChanged (max(input_streams(), output_streams()));
|
||||
}
|
||||
|
||||
ProcessorCreated (this); /* EMIT SIGNAL */
|
||||
|
|
@ -80,7 +80,7 @@ PluginInsert::PluginInsert (Session& s, const XMLNode& node)
|
|||
|
||||
{
|
||||
Glib::Mutex::Lock em (_session.engine().process_lock());
|
||||
IO::MoreChannels (max(input_streams(), output_streams()));
|
||||
IO::PortCountChanged (max(input_streams(), output_streams()));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue