summaryrefslogtreecommitdiff
path: root/main/translate.c
diff options
context:
space:
mode:
authorAlexander Traud <pabstraud@compuserve.com>2015-12-08 10:46:21 +0100
committerAlexander Traud <pabstraud@compuserve.com>2015-12-08 10:48:02 +0100
commit64f899e5f3d4afe9de56653e5a65236197d819b5 (patch)
treeab83479587ff115e04b491a1829b0c4225b4860d /main/translate.c
parent65c8147952b60b1f16e05fb62d5b5f889775d3a6 (diff)
translate: Avoid a warning message when doing FEC within Opus Codec.
ASTERISK-25616 #close Change-Id: Ibe729aaf2e6e25506cff247cec5149ec1e589319
Diffstat (limited to 'main/translate.c')
-rw-r--r--main/translate.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/main/translate.c b/main/translate.c
index 61a827b71..8d37e3724 100644
--- a/main/translate.c
+++ b/main/translate.c
@@ -397,9 +397,6 @@ static struct ast_trans_pvt *newpvt(struct ast_translator *t, struct ast_format
/*! \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;
@@ -423,12 +420,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.