Merge "translate.c do not log WARNING on empty audio frame"

This commit is contained in:
George Joseph
2019-06-21 13:41:29 -05:00
committed by Gerrit Code Review

View File

@@ -402,8 +402,11 @@ static int framein(struct ast_trans_pvt *pvt, struct ast_frame *f)
pvt->f.seqno = f->seqno;
if (f->samples == 0) {
/* Do not log empty audio frame */
if (strcasecmp(f->src, "ast_prod")) {
ast_log(LOG_WARNING, "no samples for %s\n", pvt->t->name);
}
}
if (pvt->t->buffer_samples) { /* do not pass empty frames to callback */
if (f->datalen == 0) { /* perform native PLC if available */
/* If the codec has native PLC, then do that */