Rename newp to newpvt (bug #2190), change hold music.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3560 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer
2004-08-01 14:19:04 +00:00
parent fbe6024753
commit 05e338ce75
6 changed files with 5 additions and 4 deletions

View File

@@ -107,7 +107,7 @@ struct ast_trans_pvt *ast_translator_build_path(int dest, int source)
tmp->nextout.tv_sec = 0;
tmp->nextout.tv_usec = 0;
tmp->step = tr_matrix[source][dest].step;
tmp->state = tmp->step->new();
tmp->state = tmp->step->newpvt();
if (!tmp->state) {
ast_log(LOG_WARNING, "Failed to build translator step from %d to %d\n", source, dest);
free(tmp);
@@ -237,7 +237,7 @@ static void calc_cost(struct ast_translator *t,int samples)
t->cost = 99999;
return;
}
pvt = t->new();
pvt = t->newpvt();
if (!pvt) {
ast_log(LOG_WARNING, "Translator '%s' appears to be broken and will probably fail.\n", t->name);
t->cost = 99999;