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:
Kevin P. Fleming
2006-10-31 21:25:20 +00:00
parent 59186bb2d2
commit f725940328

View File

@@ -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) {