X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=oss_write.c;h=57bdcfa6b9df8b7b81c4345e6332c4add44f9399;hp=d2dc963eaeb03f3b5cc520248109cef0cac6b08b;hb=20e2c6a532dcb0c197062b9f97753e000eae3c6a;hpb=35e284e06a5c8e20d02b61fdcb4bcc20b237c1e4 diff --git a/oss_write.c b/oss_write.c index d2dc963e..57bdcfa6 100644 --- a/oss_write.c +++ b/oss_write.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2009-2012 Andre Noll + * Copyright (C) 2009-2013 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -164,13 +164,15 @@ static void oss_post_select(__a_unused struct sched *s, struct private_oss_write_data *powd = wn->private_data; struct btr_node *btrn = wn->btrn; size_t frames, bytes; - int ret = btr_node_status(btrn, wn->min_iqs, BTR_NT_LEAF); + int ret; char *data; + ret = task_get_notification(t); if (ret < 0) goto out; - if (ret == 0) - return; + ret = btr_node_status(btrn, wn->min_iqs, BTR_NT_LEAF); + if (ret <= 0) + goto out; if (!powd) { int32_t rate, ch, format; get_btr_sample_rate(btrn, &rate);