[asterisk-commits] file: branch 1.4 r67631 - /branches/1.4/main/translate.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Wed Jun 6 06:18:40 MST 2007


Author: file
Date: Wed Jun  6 08:18:39 2007
New Revision: 67631

URL: http://svn.digium.com/view/asterisk?view=rev&rev=67631
Log:
Fix plc_samples warning when registering a translator. (issue #9897 reported by xylome)

Modified:
    branches/1.4/main/translate.c

Modified: branches/1.4/main/translate.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/translate.c?view=diff&rev=67631&r1=67630&r2=67631
==============================================================================
--- branches/1.4/main/translate.c (original)
+++ branches/1.4/main/translate.c Wed Jun  6 08:18:39 2007
@@ -673,7 +673,7 @@
 				t->plc_samples, t->buffer_samples);
 			return -1;
 		}
-		if (t->dstfmt != AST_FORMAT_SLINEAR)
+		if (t->dstfmt != powerof(AST_FORMAT_SLINEAR))
 			ast_log(LOG_WARNING, "plc_samples %d format %x\n",
 				t->plc_samples, t->dstfmt);
 	}



More information about the asterisk-commits mailing list