[asterisk-commits] dvossel: branch dvossel/fixtheworld_phase2 r306959 - /team/dvossel/fixtheworl...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Feb 8 12:59:30 CST 2011


Author: dvossel
Date: Tue Feb  8 12:59:26 2011
New Revision: 306959

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=306959
Log:
Fix read and write transcoder path output in 'core show channel'

Modified:
    team/dvossel/fixtheworld_phase2/main/translate.c

Modified: team/dvossel/fixtheworld_phase2/main/translate.c
URL: http://svnview.digium.com/svn/asterisk/team/dvossel/fixtheworld_phase2/main/translate.c?view=diff&rev=306959&r1=306958&r2=306959
==============================================================================
--- team/dvossel/fixtheworld_phase2/main/translate.c (original)
+++ team/dvossel/fixtheworld_phase2/main/translate.c Tue Feb  8 12:59:26 2011
@@ -789,16 +789,17 @@
 const char *ast_translate_path_to_str(struct ast_trans_pvt *p, struct ast_str **str)
 {
 	struct ast_trans_pvt *pn = p;
+	char tmp[256];
 
 	if (!p || !p->t) {
 		return "";
 	}
 
-	ast_str_set(str, 0, "%s", ast_getformatname(&p->t->src_format));
+	ast_str_set(str, 0, "%s", ast_getformatname_multiple_byid(tmp, sizeof(tmp), p->t->src_format.id));
 
 	while ( (p = pn) ) {
 		pn = p->next;
-		ast_str_append(str, 0, "->%s", ast_getformatname(&p->t->dst_format));
+		ast_str_append(str, 0, "->%s", ast_getformatname_multiple_byid(tmp, sizeof(tmp), p->t->dst_format.id));
 	}
 
 	return ast_str_buffer(*str);




More information about the asterisk-commits mailing list