https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r11058 | kpfleming | 2006-02-24 22:23:48 -0600 (Fri, 24 Feb 2006) | 2 lines
ensure that spy frame queueing is able to deal with translation failing for any reason (issue #6546)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@11060
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
trans->last_format = f->subclass;
}
}
- translated_frame = ast_translate(trans->path, f, 0);
+ if (!(translated_frame = ast_translate(trans->path, f, 0))) {
+ ast_log(LOG_ERROR, "Translation to %s failed, dropping frame for spies\n",
+ ast_getformatname(AST_FORMAT_SLINEAR));
+ ast_mutex_unlock(&spy->lock);
+ break;
+ }
}
for (last = queue->head; last && last->next; last = last->next);