[asterisk-commits] dvossel: branch dvossel/improved_hd_audio_translation_paths r280776 - /team/d...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Aug 3 14:53:05 CDT 2010


Author: dvossel
Date: Tue Aug  3 14:53:01 2010
New Revision: 280776

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=280776
Log:
minor tweak to 'core show translation paths' output

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

Modified: team/dvossel/improved_hd_audio_translation_paths/main/translate.c
URL: http://svnview.digium.com/svn/asterisk/team/dvossel/improved_hd_audio_translation_paths/main/translate.c?view=diff&rev=280776&r1=280775&r2=280776
==============================================================================
--- team/dvossel/improved_hd_audio_translation_paths/main/translate.c (original)
+++ team/dvossel/improved_hd_audio_translation_paths/main/translate.c Tue Aug  3 14:53:01 2010
@@ -663,7 +663,7 @@
 		AST_RWLIST_RDLOCK(&translators);
 		ast_cli(a->fd, "--- Translation paths SRC Codec \"%s\" sample rate %d ---\n", a->argv[4], ast_format_rate(input_src));
 		for (i = 0; i < len; i++) {
-			if (!(format_list[i].bits & AST_FORMAT_AUDIO_MASK)) {
+			if (!(format_list[i].bits & AST_FORMAT_AUDIO_MASK) || (format_list[i].bits == input_src)) {
 				continue;
 			}
 			dst = powerof(format_list[i].bits);




More information about the asterisk-commits mailing list