]> git.tue.mpg.de Git - paraslash.git/commitdiff
audiod: Switch the status task to the alternative post select method.
authorAndre Noll <maan@systemlinux.org>
Sun, 31 Mar 2013 15:52:57 +0000 (15:52 +0000)
committerAndre Noll <maan@systemlinux.org>
Tue, 30 Apr 2013 12:12:46 +0000 (14:12 +0200)
audiod.c

index 41be3c4f757c64e200c1e6772f82bac6cbe56d9b..91122308f8dada77a3a73121968dca47305d7fc7 100644 (file)
--- 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;