audio: fix handling of sample_rate and channels count.
[paraslash.git] / sched.c
diff --git a/sched.c b/sched.c
index 9db7c09..ea79a3e 100644 (file)
--- a/sched.c
+++ b/sched.c
@@ -16,7 +16,10 @@ static void sched_preselect(struct sched *s)
 again:
        list_for_each_entry_safe(t, tmp, &pre_select_list, pre_select_node) {
                t->pre_select(s, t);
-               if (t->ret > 0 || !t->event_handler)
+//             PARA_INFO_LOG("%s \n", t->status);
+               if (t->ret > 0)
+                       continue;
+               if (!t->event_handler)
                        continue;
                t->event_handler(t);
                goto again;
@@ -29,6 +32,7 @@ static void sched_post_select(struct sched *s)
 
        list_for_each_entry_safe(t, tmp, &post_select_list, post_select_node) {
                t->post_select(s, t);
+//             PARA_INFO_LOG("%s \n", t->status);
                if (t->ret > 0 || !t->event_handler)
                        continue;
                t->event_handler(t);