X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;ds=sidebyside;f=oggdec_filter.c;h=2f52d4d43b759765cc786fab0930e3b0fd91dc45;hb=694d9ae83695e54ffbb51acb1db0496c4281f4b4;hp=bac28cfdee77d5a9d48d343fc7f208111f437991;hpb=d9d83772fbee853857f1904fa6553f06a026108c;p=paraslash.git diff --git a/oggdec_filter.c b/oggdec_filter.c index bac28cfd..2f52d4d4 100644 --- a/oggdec_filter.c +++ b/oggdec_filter.c @@ -125,13 +125,13 @@ static int oggdec_execute(struct btr_node *btrn, const char *cmd, char **result) if (!strcmp(cmd, "samplerate")) { if (pod->samplerate == 0) - return -ERRNO_TO_PARA_ERROR(ENAVAIL); + return -E_BTR_NAVAIL; *result = make_message("%u", pod->samplerate); return 1; } if (!strcmp(cmd, "channels")) { if (pod->channels == 0) - return -ERRNO_TO_PARA_ERROR(ENAVAIL); + return -E_BTR_NAVAIL; *result = make_message("%u", pod->channels); return 1; } @@ -243,7 +243,7 @@ static void ogg_post_select(__a_unused struct sched *s, struct task *t) if (read_ret < 0) goto out; btr_add_output(out, read_ret, btrn); - if (btr_node_status(btrn, fn->min_iqs, BTR_NT_INTERNAL) == 0) + if (btr_get_output_queue_size(btrn) > 640 * 1024) return; /* enough data for the moment */ } out: