mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-02 03:47:42 +01:00
[Summary] Do not restore routes connection using XML IO state for TracksLive, because this is redundant for TracksLive.
Moreover if the device is changed XML state of IO contains port names of the old device which causes attempts to connect to non existent ports. [Reviewed by] Paul Davis
This commit is contained in:
parent
62cdb1478e
commit
c22a1ee962
1 changed files with 6 additions and 2 deletions
|
|
@ -39,6 +39,7 @@
|
|||
#include "ardour/debug.h"
|
||||
#include "ardour/io.h"
|
||||
#include "ardour/port.h"
|
||||
#include "ardour/profile.h"
|
||||
#include "ardour/route.h"
|
||||
#include "ardour/session.h"
|
||||
#include "ardour/user_bundle.h"
|
||||
|
|
@ -692,13 +693,16 @@ IO::set_state_2X (const XMLNode& node, int version, bool in)
|
|||
int
|
||||
IO::connecting_became_legal ()
|
||||
{
|
||||
int ret;
|
||||
int ret = 0;
|
||||
|
||||
assert (pending_state_node);
|
||||
|
||||
connection_legal_c.disconnect ();
|
||||
|
||||
ret = make_connections (*pending_state_node, pending_state_node_version, pending_state_node_in);
|
||||
// it's not required for TracksLive, as long as TracksLive's session does all the cennections when it's being loaded
|
||||
if (!Profile->get_trx() ) {
|
||||
ret = make_connections (*pending_state_node, pending_state_node_version, pending_state_node_in);
|
||||
}
|
||||
|
||||
delete pending_state_node;
|
||||
pending_state_node = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue