[asterisk-commits] trunk r11119 - /trunk/translate.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Sat Feb 25 12:53:46 MST 2006
Author: mattf
Date: Sat Feb 25 13:53:45 2006
New Revision: 11119
URL: http://svn.digium.com/view/asterisk?rev=11119&view=rev
Log:
Bug fix for translation updates. Thanks Josh!
Modified:
trunk/translate.c
Modified: trunk/translate.c
URL: http://svn.digium.com/view/asterisk/trunk/translate.c?rev=11119&r1=11118&r2=11119&view=diff
==============================================================================
--- trunk/translate.c (original)
+++ trunk/translate.c Sat Feb 25 13:53:45 2006
@@ -470,8 +470,10 @@
/* We will need to translate */
AST_LIST_LOCK(&translators);
for (y = 0; y < MAX_FORMAT; y++) {
- if (!(cur & *dst))
+ if (!(cur & *dst)) {
+ cur = cur << 1;
continue;
+ }
for (x = 0; x < MAX_FORMAT; x++) {
if ((*srcs & (1 << x)) && /* x is a valid source format */
More information about the asterisk-commits
mailing list