]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fix plc_samples warning when registering a translator. (issue #9897 reported by xylome)
authorJoshua Colp <jcolp@digium.com>
Wed, 6 Jun 2007 13:18:39 +0000 (13:18 +0000)
committerJoshua Colp <jcolp@digium.com>
Wed, 6 Jun 2007 13:18:39 +0000 (13:18 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@67631 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/translate.c

index ca044c331b070da59f7404466af053c8cc9b77a3..5e2391a082e08f4aa3216e7a02bdcf77d8a74758 100644 (file)
@@ -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);
        }