X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=aacdec_filter.c;h=2dd68448b3b130172ba3417cb20eedcfc1fff262;hp=79c8bb660a9a94708b1d540d00d35b4795e0ba24;hb=4d425382c007b200121b4be5120db1acd30d292f;hpb=1c859dfc274c592eca267197131d6497b650b24c diff --git a/aacdec_filter.c b/aacdec_filter.c index 79c8bb66..2dd68448 100644 --- a/aacdec_filter.c +++ b/aacdec_filter.c @@ -60,19 +60,7 @@ static int aacdec_execute(struct btr_node *btrn, const char *cmd, char **result) struct filter_node *fn = btr_context(btrn); struct private_aacdec_data *padd = fn->private_data; - if (!strcmp(cmd, "sample_rate")) { - if (padd->sample_rate == 0) - return -E_BTR_NAVAIL; - *result = make_message("%u", padd->sample_rate); - return 1; - } - if (!strcmp(cmd, "channels")) { - if (padd->channels == 0) - return -E_BTR_NAVAIL; - *result = make_message("%u", padd->channels); - return 1; - } - return -ERRNO_TO_PARA_ERROR(ENOTSUP); + return decoder_execute(cmd, padd->sample_rate, padd->channels, result); } static void aacdec_open(struct filter_node *fn)