diff options
author | Martin Pycko <martinp@digium.com> | 2003-08-16 05:10:35 +0000 |
---|---|---|
committer | Martin Pycko <martinp@digium.com> | 2003-08-16 05:10:35 +0000 |
commit | 501c800c5ac97b32d031613433f6e54b26c96338 (patch) | |
tree | 25d33da4ebede3baf10bbd03a14ef1333cc1ad4a /image.c | |
parent | 6fc89a80d1e901571cb3bcc55fb020724d4b9790 (diff) |
Show the names of the codecs instead of the numbers (bug #92)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1348 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'image.c')
-rwxr-xr-x | image.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -175,14 +175,14 @@ int ast_send_image(struct ast_channel *chan, char *filename) static int show_image_formats(int fd, int argc, char *argv[]) { #define FORMAT "%10s %10s %50s %10s\n" -#define FORMAT2 "%10s %10s %50s %10d\n" +#define FORMAT2 "%10s %10s %50s %10s\n" struct ast_imager *i; if (argc != 3) return RESULT_SHOWUSAGE; ast_cli(fd, FORMAT, "Name", "Extensions", "Description", "Format"); i = list; while(i) { - ast_cli(fd, FORMAT2, i->name, i->exts, i->desc, i->format); + ast_cli(fd, FORMAT2, i->name, i->exts, i->desc, ast_getformatname(i->format)); i = i->next; }; return RESULT_SUCCESS; |