[asterisk-commits] sruffell: branch sruffell/asterisk-1.4-transcoder r160935 - /team/sruffell/as...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Dec 4 10:05:33 CST 2008


Author: sruffell
Date: Thu Dec  4 10:05:32 2008
New Revision: 160935

URL: http://svn.digium.com/view/asterisk?view=rev&rev=160935
Log:
Removing some debug messages I placed in translate.c.

Issue: DAHDI-198

Modified:
    team/sruffell/asterisk-1.4-transcoder/main/translate.c

Modified: team/sruffell/asterisk-1.4-transcoder/main/translate.c
URL: http://svn.digium.com/view/asterisk/team/sruffell/asterisk-1.4-transcoder/main/translate.c?view=diff&rev=160935&r1=160934&r2=160935
==============================================================================
--- team/sruffell/asterisk-1.4-transcoder/main/translate.c (original)
+++ team/sruffell/asterisk-1.4-transcoder/main/translate.c Thu Dec  4 10:05:32 2008
@@ -179,10 +179,7 @@
 			if (pvt->plc) {
 				int l = pvt->t->plc_samples;
 				if (pvt->samples + l > pvt->t->buffer_samples) {
-					ast_log(LOG_WARNING, "Out of buffer space %d %d\n",
-						pvt->samples + l,
-						pvt->t->buffer_samples);
-					exit(-1);
+					ast_log(LOG_WARNING, "Out of buffer space\n");
 					return -1;
 				}
 				l = plc_fillin(pvt->plc, dst + pvt->samples, l);
@@ -190,10 +187,8 @@
 				pvt->datalen = pvt->samples * 2;	/* SLIN has 2bytes for 1sample */
 			}
 			/* We don't want generic PLC. If the codec has native PLC, then do that */
-			if (!pvt->t->native_plc) {
-				ast_log(LOG_WARNING, "native_plc\n");
+			if (!pvt->t->native_plc)
 				return 0;
-			}
 		}
 		if (pvt->samples + f->samples > pvt->t->buffer_samples) {
 			ast_log(LOG_WARNING, "Out of buffer space\n");




More information about the asterisk-commits mailing list