]> git.tue.mpg.de Git - paraslash.git/commitdiff
Fix the wav filter for Mac OS 10.5.
authorAndre Noll <maan@systemlinux.org>
Sun, 12 Oct 2008 21:56:25 +0000 (23:56 +0200)
committerAndre Noll <maan@systemlinux.org>
Sun, 12 Oct 2008 21:56:25 +0000 (23:56 +0200)
We have to initialize fn->loaded.

wav.c

diff --git a/wav.c b/wav.c
index 52a97af06aac34f6e3b4601596104db5bc1665bd..4933afd49443c006e4fd3d219d51cfd75856bf71 100644 (file)
--- a/wav.c
+++ b/wav.c
@@ -99,6 +99,7 @@ static void wav_open(struct filter_node *fn)
        fn->buf = para_malloc(fn->bufsize);
        fn->private_data = para_malloc(sizeof(int));
        bof = fn->private_data;
+       fn->loaded = 0;
        *bof = 1;
        PARA_INFO_LOG("wav filter node: %p, output buffer: %p, loaded: %zd\n",
                fn, fn->buf, fn->loaded);