X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=wav_filter.c;h=716d8dd94c318cca2fb17a16a6d062a929099f92;hp=63c7b7eb6752ed50126c6b5a3d9900d9a1f8030e;hb=23b121a85984baa9252f4b4c0b8c4f186e394bb7;hpb=d4d37bb32a8d6219f9f52aa2ee3de55eb7e099c8 diff --git a/wav_filter.c b/wav_filter.c index 63c7b7eb..716d8dd9 100644 --- a/wav_filter.c +++ b/wav_filter.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2005-2010 Andre Noll + * Copyright (C) 2005-2013 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -7,7 +7,6 @@ /** \file wav_filter.c A filter that inserts a wave header. */ #include -#include #include "para.h" #include "error.h" @@ -72,8 +71,7 @@ static void wav_pre_select(struct sched *s, struct task *t) t->error = 0; if (iqs == 0) return; - s->timeout.tv_sec = 0; - s->timeout.tv_usec = 1; + sched_min_delay(s); } static void wav_post_select(__a_unused struct sched *s, struct task *t) @@ -119,7 +117,7 @@ err: if (ret == -E_WAV_SUCCESS) btr_splice_out_node(btrn); else { - btr_remove_node(btrn); + btr_remove_node(&fn->btrn); PARA_ERROR_LOG("%s\n", para_strerror(-ret)); } }