diff --git a/main/translate.c b/main/translate.c index fe464602cb..5542107ae0 100644 --- a/main/translate.c +++ b/main/translate.c @@ -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); } }