From: Andre Noll <maan@systemlinux.org>
Date: Sun, 31 Mar 2013 15:52:57 +0000 (+0000)
Subject: audiod: Switch the status task to the alternative post select method.
X-Git-Tag: v0.4.13~39^2~20
X-Git-Url: https://git.tuebingen.mpg.de/?a=commitdiff_plain;h=ce462a35951601577f187e30e0a651ed04c3fb51;p=paraslash.git

audiod: Switch the status task to the alternative post select method.
---

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;