]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - wav_filter.c
paraslash 0.7.3
[paraslash.git] / wav_filter.c
index 692306b541fcb28012b1a2a4d873a83d93855437..de4a3e6aafc76b83de2d9e2f4112c39c6e038d06 100644 (file)
@@ -53,7 +53,7 @@ static void wav_open(struct filter_node *fn)
 {
        int *bof;
 
-       fn->private_data = para_malloc(sizeof(int));
+       fn->private_data = alloc(sizeof(int));
        bof = fn->private_data;
        *bof = 1;
 }
@@ -78,7 +78,7 @@ static int wav_post_monitor(__a_unused struct sched *s, void *context)
        int32_t rate, ch;
 
        if (iqs == 0) {
-               ret = -E_WAV_EOF;
+               ret = -E_EOF;
                if (btr_no_parent(btrn))
                        goto err;
                return 0;
@@ -101,7 +101,7 @@ static int wav_post_monitor(__a_unused struct sched *s, void *context)
        free(buf);
        if (ret < 0)
                goto err;
-       header = para_malloc(WAV_HEADER_LEN);
+       header = alloc(WAV_HEADER_LEN);
        make_wav_header(ch, rate, header);
        btr_add_output(header, WAV_HEADER_LEN, btrn);
        ret = -E_WAV_SUCCESS;