mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-17 02:19:03 +00:00
Merge "AST-2019-005 - translate: Don't assume all frames will have a src."
This commit is contained in:
@@ -403,7 +403,7 @@ static int framein(struct ast_trans_pvt *pvt, struct ast_frame *f)
|
|||||||
|
|
||||||
if (f->samples == 0) {
|
if (f->samples == 0) {
|
||||||
/* Do not log empty audio frame */
|
/* 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);
|
ast_log(LOG_WARNING, "no samples for %s\n", pvt->t->name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user