]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - wav.c
Better error diagnostics for the mp3 decoder.
[paraslash.git] / wav.c
diff --git a/wav.c b/wav.c
index b3c53fbfa2d4b35311abd529cecb7fb8905dd9af..4933afd49443c006e4fd3d219d51cfd75856bf71 100644 (file)
--- a/wav.c
+++ b/wav.c
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2005-2007 Andre Noll <maan@systemlinux.org>
+ * Copyright (C) 2005-2008 Andre Noll <maan@systemlinux.org>
  *
  * Licensed under the GPL v2. For licencing details see COPYING.
  */
@@ -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);