]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - prebuffer_filter.c
Avoid audiod hangs when prebuffer filter is active.
[paraslash.git] / prebuffer_filter.c
index ad2373767a8b8df5793472b795ac3d5b85327b55..05ceb88c5b93c4e7c52b4a55029f893d7ec2cd23 100644 (file)
@@ -57,7 +57,11 @@ static int prebuffer_post_select(__a_unused struct sched *s, void *context)
        size_t iqs = btr_get_input_queue_size(btrn);
        struct private_prebuffer_data *ppd = fn->private_data;
        uint32_t size = FILTER_CMD_OPT_UINT32_VAL(PREBUFFER, SIZE, fn->lpr);
+       int ret;
 
+       ret = task_get_notification(fn->task);
+       if (ret < 0)
+               return ret;
        if (ppd->barrier.tv_sec == 0)
                return 0;
        if (tv_diff(now, &ppd->barrier, NULL) < 0)