WS: crash bugfix related to missing strip panner

Surface made Ardour crash when a client connected
and some session track was not a VCA nor had a panner,
like MIDI strips.
This commit is contained in:
Luciano Iam 2020-09-01 22:28:00 +02:00 committed by Robin Gareus
parent 7a9d4b1f64
commit 9c08c058a3
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
5 changed files with 18 additions and 30 deletions

View file

@ -33,7 +33,7 @@ export default class Strip extends AddressableComponent {
super(parent, addr);
this._plugins = {};
this._name = desc[0];
this._isVca = desc[1];
this._hasPan = desc[1];
this._meter = 0;
this._gain = 0;
this._pan = 0;
@ -48,8 +48,8 @@ export default class Strip extends AddressableComponent {
return this._name;
}
get isVca () {
return this._isVca;
get hasPan () {
return this._hasPan;
}
get meter () {