spek

Acoustic spectrum analyser
git clone http://git.hanabi.in/repos/spek.git
Log | Files | Refs | README

commit dbcdd51a80746708782de46fd686398f65584001
parent 99375b456d5e1553787c6e62e22cbfab24580fac
Author: Alexander Kojevnikov <alexander@kojevnikov.com>
Date:   Wed, 30 Jun 2010 17:41:52 +1000

Fix random crashes when opening Vorbis files

Diffstat:
Msrc/spek-source.vala | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/spek-source.vala b/src/spek-source.vala @@ -169,7 +169,9 @@ namespace Spek { for (int i = 0; i < bands; i++) { values[i] = magnitudes.list_get_value (i).get_float (); } - data_cb (sample++, values); + if (sample < samples) { + data_cb (sample++, values); + } } break; case MessageType.TAG: