diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2010-01-02 11:49:15 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2010-01-02 11:49:15 +0000 |
| commit | 3b4cf06be15e92cf3addc2298469f590d0e624d1 (patch) | |
| tree | 7c8ef527175667de3280b7083a08755390b8eb2f /src/ui/mainvisual.cpp | |
| parent | 3ed4021f722236f8533934c98cc0ff3ffc83c33b (diff) | |
| download | qmmp-3b4cf06be15e92cf3addc2298469f590d0e624d1.tar.gz qmmp-3b4cf06be15e92cf3addc2298469f590d0e624d1.tar.bz2 qmmp-3b4cf06be15e92cf3addc2298469f590d0e624d1.zip | |
fixed segfault with 6-channel files
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1470 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/ui/mainvisual.cpp')
| -rw-r--r-- | src/ui/mainvisual.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/mainvisual.cpp b/src/ui/mainvisual.cpp index a0a64982b..77c1f3acc 100644 --- a/src/ui/mainvisual.cpp +++ b/src/ui/mainvisual.cpp @@ -110,7 +110,7 @@ void MainVisual::add (Buffer *b, unsigned long w, int c, int p) len = 512; cnt = len; - if (c == 2) + if (c >= 2) { l = new short[len]; r = new short[len]; |
