]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
translate: Avoid a warning message when doing FEC within Opus Codec. 79/1779/1
authorAlexander Traud <pabstraud@compuserve.com>
Tue, 8 Dec 2015 09:46:21 +0000 (10:46 +0100)
committerAlexander Traud <pabstraud@compuserve.com>
Tue, 8 Dec 2015 09:51:34 +0000 (03:51 -0600)
ASTERISK-25616 #close

Change-Id: Ibe729aaf2e6e25506cff247cec5149ec1e589319

main/translate.c

index e95e06bfdd78a92e009c535ece57f2e78fbc87d5..c9932cb11bac772ea358d289135b3b9a34a21e1c 100644 (file)
@@ -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.