X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=audiod.c;h=1663dad3d88e8bb90ec69e2f7cffa1bcbd2ce64e;hp=dd6022889280eb6b19980ccdb0750af1306401fc;hb=081ea8699e6a309c44446884b8c3752529d96a25;hpb=8cf2884a87db0eca0aa2f382c9850335332682b3 diff --git a/audiod.c b/audiod.c index dd602288..1663dad3 100644 --- a/audiod.c +++ b/audiod.c @@ -873,6 +873,17 @@ static int init_default_filters(void) if (a->num_filters) continue; /* no default -- nothing to to */ + /* + * If udp is used to receive this audiod format, add fecdec as + * the first filter. + */ + if (strcmp(afi[i].receiver->name, "udp") == 0) { + tmp = para_strdup("fecdec"); + add_filter(i, tmp); + free(tmp); + if (ret < 0) + goto out; + } /* add "dec" to audio format name */ tmp = make_message("%sdec", audio_formats[i]); for (j = 0; filters[j].name; j++) @@ -898,7 +909,7 @@ static int parse_filter_args(void) { int i, ret, nf; - nf = PARA_MAX(1U, conf.filter_given); + nf = PARA_MAX(2U, conf.filter_given); PARA_INFO_LOG("maximal number of filters: %d\n", nf); FOR_EACH_AUDIO_FORMAT(i) { afi[i].filter_conf = para_malloc(nf * sizeof(void *));