Merge "AST-2019-005 - translate: Don't assume all frames will have a src."

This commit is contained in:
George Joseph 2019-09-05 07:52:33 -05:00 committed by Gerrit Code Review
commit f654ced646
1 changed files with 1 additions and 1 deletions

View File

@ -403,7 +403,7 @@ static int framein(struct ast_trans_pvt *pvt, struct ast_frame *f)
if (f->samples == 0) {
/* Do not log empty audio frame */
if (strcasecmp(f->src, "ast_prod")) {
if (!f->src || strcasecmp(f->src, "ast_prod")) {
ast_log(LOG_WARNING, "no samples for %s\n", pvt->t->name);
}
}