From: David Vossel Date: Thu, 3 Feb 2011 18:12:57 +0000 (+0000) Subject: Fixes output of "core show codecs" to display image types correctly. X-Git-Tag: 11.0.0-beta1~1887 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=63f5a80a3bb4b408e9d5a39c4fcc88505113a0bb;p=thirdparty%2Fasterisk.git Fixes output of "core show codecs" to display image types correctly. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@306053 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/frame.c b/main/frame.c index 840fa4b75d..4ffb31fb96 100644 --- a/main/frame.c +++ b/main/frame.c @@ -711,7 +711,7 @@ static char *show_codecs(struct ast_cli_entry *e, int cmd, struct ast_cli_args * ast_cli(a->fd, "%19u %5s %8s (%s)\n", AST_FORMAT_LIST[x].id, (AST_FORMAT_GET_TYPE(AST_FORMAT_LIST[x].id) == AST_FORMAT_TYPE_AUDIO) ? "audio" : - (AST_FORMAT_GET_TYPE(AST_FORMAT_LIST[x].id) == AST_FORMAT_TYPE_TEXT) ? "image" : + (AST_FORMAT_GET_TYPE(AST_FORMAT_LIST[x].id) == AST_FORMAT_TYPE_IMAGE) ? "image" : (AST_FORMAT_GET_TYPE(AST_FORMAT_LIST[x].id) == AST_FORMAT_TYPE_VIDEO) ? "video" : (AST_FORMAT_GET_TYPE(AST_FORMAT_LIST[x].id) == AST_FORMAT_TYPE_TEXT) ? "text" : "(unk)",