diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2010-02-15 06:43:20 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2010-02-15 06:43:20 +0000 |
commit | 54a6651ef163f9d9caeccd11a2c949d15f99e91d (patch) | |
tree | c58d1f6d952cdcb78080c037730957af4343bbbb /packages | |
parent | cb6169700a30fce942f015a36bbc73c6df44edbc (diff) |
fixed crash bug when banging switch~ when DSP is off, #2929284
svn path=/trunk/; revision=13172
Diffstat (limited to 'packages')
-rw-r--r-- | packages/patches/switch~_bang_crash-0.43.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/packages/patches/switch~_bang_crash-0.43.patch b/packages/patches/switch~_bang_crash-0.43.patch new file mode 100644 index 00000000..c72dc671 --- /dev/null +++ b/packages/patches/switch~_bang_crash-0.43.patch @@ -0,0 +1,16 @@ +Index: d_ugen.c +=================================================================== +--- d_ugen.c (revision 13170) ++++ d_ugen.c (working copy) +@@ -219,6 +219,11 @@ + + static void block_bang(t_block *x) + { ++ if (!dsp_chain) ++ { ++ pd_error(x, "bang to block~ or switch~ with DSP off has no effect"); ++ return; ++ } + if (x->x_switched && !x->x_switchon) + { + t_int *ip; |