From: Joshua Colp Date: Wed, 6 Jun 2007 13:18:39 +0000 (+0000) Subject: Fix plc_samples warning when registering a translator. (issue #9897 reported by xylome) X-Git-Tag: 1.4.5~58 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7fb76769a89585ea117aa16faec47697f9276a90;p=thirdparty%2Fasterisk.git Fix plc_samples warning when registering a translator. (issue #9897 reported by xylome) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@67631 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/translate.c b/main/translate.c index ca044c331b..5e2391a082 100644 --- a/main/translate.c +++ b/main/translate.c @@ -673,7 +673,7 @@ int __ast_register_translator(struct ast_translator *t, struct ast_module *mod) 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); }