From ce462a35951601577f187e30e0a651ed04c3fb51 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sun, 31 Mar 2013 15:52:57 +0000 Subject: [PATCH] audiod: Switch the status task to the alternative post select method. --- audiod.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/audiod.c b/audiod.c index 41be3c4f..91122308 100644 --- a/audiod.c +++ b/audiod.c @@ -1205,7 +1205,7 @@ min_delay: } /* restart the client task if necessary */ -static void status_post_select(struct sched *s, struct task *t) +static int status_post_select(struct sched *s, struct task *t) { struct status_task *st = container_of(t, struct status_task, task); @@ -1278,13 +1278,15 @@ static void status_post_select(struct sched *s, struct task *t) st->last_status_read = *now; out: start_stop_decoders(); + return 0; } static void init_status_task(struct status_task *st) { memset(st, 0, sizeof(struct status_task)); st->task.pre_select = status_pre_select; - st->task.post_select = status_post_select; + st->task.new_post_select = status_post_select; + st->task.post_select = NULL; st->sa_time_diff_sign = 1; st->clock_diff_count = conf.clock_diff_count_arg; st->current_audio_format_num = -1; -- 2.39.2