X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=alsa_write.c;h=bcabe53cb704f86144fb6ff2bf5da5024b39d02a;hp=7f8aae01c22a6b9fcc2a48712c490b6bde73b40e;hb=5ec0e807014e7e88d6e5e281fd51a391ad697ce1;hpb=c773ec0d537d239e2eebe2d77a786f0ba49fdc22 diff --git a/alsa_write.c b/alsa_write.c index 7f8aae01..bcabe53c 100644 --- a/alsa_write.c +++ b/alsa_write.c @@ -46,7 +46,6 @@ struct private_alsa_write_data { * of the writer node group. */ unsigned sample_rate; - snd_pcm_format_t sample_format; /** * The number of channels, given by command line option or the @@ -184,8 +183,7 @@ static void alsa_write_pre_select(struct sched *s, struct task *t) underrun = 50; underrun -= 50; ms2tv(underrun, &tv); - if (tv_diff(&s->timeout, &tv, NULL) > 0) - s->timeout = tv; + sched_request_timeout(&tv, s); } static void alsa_close(struct writer_node *wn)