X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;ds=sidebyside;f=audiod.c;h=aefac612b480af2d6f1c857b5225f3d042b68ff4;hb=2830b9f881898aaec073d5ba19e33482e30190bd;hp=88411af46616879040a8691308ed4ca639fc5475;hpb=d16fe3df649cb48d5ffa26187da3dad4c3066646;p=paraslash.git diff --git a/audiod.c b/audiod.c index 88411af4..aefac612 100644 --- a/audiod.c +++ b/audiod.c @@ -1,10 +1,10 @@ /* - * Copyright (C) 2005-2011 Andre Noll + * Copyright (C) 2005-2012 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ -/** \file audiod.c the paraslash's audio daemon */ +/** \file audiod.c The paraslash's audio daemon. */ #include #include #include @@ -77,6 +77,12 @@ enum vss_status_flags { VSS_STATUS_FLAG_PLAYING = 2, }; +/** + * The scheduler instance of para_audiod. + * + * This is needed also in audiod_command.c (for the tasks command), so it can + * not be made static. + */ struct sched sched = {.max_fileno = 0}; /** @@ -918,8 +924,6 @@ static int parse_filter_args(void) { int i, j, ret, af_mask; - if (!conf.no_default_filters_given) - return init_default_filters(); for (i = 0; i < conf.filter_given; i++) { char *arg; ret = parse_stream_command(conf.filter_arg[i], &arg); @@ -1159,7 +1163,7 @@ static void status_pre_select(struct sched *s, struct task *t) if (must_start_decoder()) goto min_delay; - ret = btr_node_status(st->btrn, 0, BTR_NT_LEAF); + ret = btr_node_status(st->btrn, st->min_iqs, BTR_NT_LEAF); if (ret > 0) goto min_delay; if (st->ct && audiod_status == AUDIOD_OFF)