diff options
author | Tim E. Real <termtech@rogers.com> | 2011-04-16 20:49:55 +0000 |
---|---|---|
committer | Tim E. Real <termtech@rogers.com> | 2011-04-16 20:49:55 +0000 |
commit | 42be6376637248e01ea2ab0a41a6653b53d71800 (patch) | |
tree | a5936734aad82d3030b04a71cd591bfe4e8ba4a8 | |
parent | 47f7c86b68c156a0dff15c0e2486371bc8a801f6 (diff) |
Fixed crash in dssihost.cpp - my bad from recent p4.0.20 changes.
-rw-r--r-- | muse2/ChangeLog | 2 | ||||
-rw-r--r-- | muse2/muse/dssihost.cpp | 10 |
2 files changed, 5 insertions, 7 deletions
diff --git a/muse2/ChangeLog b/muse2/ChangeLog index b73c40c7..a48daf9a 100644 --- a/muse2/ChangeLog +++ b/muse2/ChangeLog @@ -10,7 +10,7 @@ (if there is a time, I'm sure someone will let me know :) ) - song changed not implemented yet - undo/redo is not implemented - - prevented initialization crash for dssi, Tim, please have a look (rj) + - Fixed crash in dssihost.cpp - my bad from recent p4.0.20 changes. (Tim) 15.04.2011: - And while we're at it... Invert drum track 'slivers' in arranger parts. (Tim) - Move part name text to bottom to accommodate drum 'slivers'. diff --git a/muse2/muse/dssihost.cpp b/muse2/muse/dssihost.cpp index 49204780..f2e94dae 100644 --- a/muse2/muse/dssihost.cpp +++ b/muse2/muse/dssihost.cpp @@ -1105,12 +1105,10 @@ bool DssiSynthIF::init(DssiSynth* s) else if (LADSPA_IS_PORT_OUTPUT(pd)) { controlsOut[cop].idx = k; - if (controls) { - controls[cop].val = 0.0; - controls[cop].tmpVal = 0.0; - controls[cop].enCtrl = false; - controls[cop].en2Ctrl = false; - } + controlsOut[cop].val = 0.0; + controlsOut[cop].tmpVal = 0.0; + controlsOut[cop].enCtrl = false; + controlsOut[cop].en2Ctrl = false; #ifdef DSSI_DEBUG printf("DssiSynthIF::init control output port:%d port idx:%d name:%s\n", cop, k, ld->PortNames[k]); |