mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 04:11:08 +00:00
let's set the seen flag early enough to actually make a difference...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@46712 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -651,6 +651,8 @@ int __ast_register_translator(struct ast_translator *t, struct ast_module *mod)
|
||||
}
|
||||
|
||||
if (!t->seen) {
|
||||
t->seen = 1;
|
||||
|
||||
if (!t->buf_size) {
|
||||
ast_log(LOG_WARNING, "empty buf size, you need to supply one\n");
|
||||
return -1;
|
||||
@@ -691,8 +693,6 @@ int __ast_register_translator(struct ast_translator *t, struct ast_module *mod)
|
||||
t->frameout = default_frameout;
|
||||
|
||||
calc_cost(t, 1);
|
||||
|
||||
t->seen = 1;
|
||||
}
|
||||
|
||||
if (option_verbose > 1) {
|
||||
|
Reference in New Issue
Block a user