X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;ds=sidebyside;f=alsa_write.c;h=bcabe53cb704f86144fb6ff2bf5da5024b39d02a;hb=0eb1ce203c17c920ea9a0f1565f68db20b3edb1f;hp=7f8aae01c22a6b9fcc2a48712c490b6bde73b40e;hpb=c773ec0d537d239e2eebe2d77a786f0ba49fdc22;p=paraslash.git 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)