X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=audiod_command.c;h=b847e5aa264fa4ccb9e8c9aafcfcb61713ae2131;hp=790c0102c896d6a49d90c4f84d7db8ed6404abad;hb=a181da64ba896c709d61e775606a0b8ebfdd1dde;hpb=5ab451760281b344bfa6e495ab1aea7d80323c3c diff --git a/audiod_command.c b/audiod_command.c index 790c0102..b847e5aa 100644 --- a/audiod_command.c +++ b/audiod_command.c @@ -216,26 +216,6 @@ __malloc static char *audiod_status_string(void) return para_strdup(status); } -__malloc static char *decoder_flags(void) -{ - int i; - char flags[MAX_STREAM_SLOTS + 1]; - - FOR_EACH_SLOT(i) { - struct slot_info *s = &slot[i]; - char flag = '0'; - if (s->receiver_node) - flag += 1; - if (s->fns) - flag += 2; - if (s->wns) - flag += 4; - flags[i] = flag; - } - flags[MAX_STREAM_SLOTS] = '\0'; - return para_strdup(flags); -} - static int dump_commands(int fd) { char *buf = para_strdup(""), *tmp = NULL; @@ -525,7 +505,7 @@ void audiod_status_dump(bool force) free(new); old = stat_item_values[SI_DECODER_FLAGS]; - new = decoder_flags(); + new = audiod_get_decoder_flags(); if (force || !old || strcmp(old, new)) { free(old); stat_item_values[SI_DECODER_FLAGS] = new;