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

17.1
George Joseph 6 years ago committed by Gerrit Code Review
commit e35918235e

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