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

changes/52/12852/1
George Joseph 7 years ago committed by Gerrit Code Review
commit f654ced646

@ -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);
}
}

Loading…
Cancel
Save