Merged revisions 67631 via svnmerge from
authorJoshua Colp <jcolp@digium.com>
Wed, 6 Jun 2007 13:20:38 +0000 (13:20 +0000)
committerJoshua Colp <jcolp@digium.com>
Wed, 6 Jun 2007 13:20:38 +0000 (13:20 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r67631 | file | 2007-06-06 09:18:39 -0400 (Wed, 06 Jun 2007) | 2 lines

Fix plc_samples warning when registering a translator. (issue #9897 reported by xylome)

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@67636 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/translate.c

index 7ed7724..f13f627 100644 (file)
@@ -598,7 +598,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);
        }