Merge "translate: Avoid a warning message when doing FEC within Opus Codec." into 11

changes/91/1791/1
Joshua Colp 10 years ago committed by Gerrit Code Review
commit 0e303df9ad

@ -328,9 +328,6 @@ static void destroy(struct ast_trans_pvt *pvt)
/*! \brief framein wrapper, deals with bound checks. */
static int framein(struct ast_trans_pvt *pvt, struct ast_frame *f)
{
int ret;
int samples = pvt->samples; /* initial value */
/* Copy the last in jb timing info to the pvt */
ast_copy_flags(&pvt->f, f, AST_FRFLAG_HAS_TIMING_INFO);
pvt->f.ts = f->ts;
@ -354,12 +351,7 @@ static int framein(struct ast_trans_pvt *pvt, struct ast_frame *f)
/* we require a framein routine, wouldn't know how to do
* it otherwise.
*/
ret = pvt->t->framein(pvt, f);
/* diagnostic ... */
if (pvt->samples == samples)
ast_log(LOG_WARNING, "%s did not update samples %d\n",
pvt->t->name, pvt->samples);
return ret;
return pvt->t->framein(pvt, f);
}
/*! \brief generic frameout routine.

Loading…
Cancel
Save