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

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sun Dec 21 15:23:16 CST 2008


Author: sruffell
Date: Sun Dec 21 15:23:16 2008
New Revision: 166256

URL: http://svn.digium.com/view/asterisk?view=rev&rev=166256
Log:
Disabling all the PLC support on this branch until the smoother is used.

Modified:
    team/sruffell/asterisk-1.4-transcoder/codecs/codec_dahdi.c

Modified: team/sruffell/asterisk-1.4-transcoder/codecs/codec_dahdi.c
URL: http://svn.digium.com/view/asterisk/team/sruffell/asterisk-1.4-transcoder/codecs/codec_dahdi.c?view=diff&rev=166256&r1=166255&r2=166256
==============================================================================
--- team/sruffell/asterisk-1.4-transcoder/codecs/codec_dahdi.c (original)
+++ team/sruffell/asterisk-1.4-transcoder/codecs/codec_dahdi.c Sun Dec 21 15:23:16 2008
@@ -292,7 +292,6 @@
 {
 	struct codec_dahdi_pvt *ztp = pvt->pvt;
 
-	if (pvt->samples) ast_log(LOG_WARNING, " -- %d\n", pvt->samples);
 	if (!f->subclass) {
 		/* We're just faking a return for calculation purposes. */
 		ztp->fake = 2;
@@ -512,22 +511,31 @@
 	if (is_encoder(zt)) {
 		zt->t.framein = dahdi_encoder_framein;
 		zt->t.frameout = dahdi_encoder_frameout;
+#if 0
 		zt->t.buffer_samples = 0;
+#endif
 	} else {
 		zt->t.framein = dahdi_decoder_framein;
 		zt->t.frameout = dahdi_decoder_frameout;
+#if 0
 		if (AST_FORMAT_G723_1 == zt->t.srcfmt) {
 			zt->t.plc_samples = G723_SAMPLES;
 		} else {
 			zt->t.plc_samples = G729_SAMPLES;
 		}
 		zt->t.buffer_samples = zt->t.plc_samples * 8;
+#endif
 	}
 	zt->t.destroy = dahdi_destroy;
+	zt->t.buffer_samples = 0;
 	zt->t.newpvt = dahdi_new;
 	zt->t.sample = fakesrc_sample;
+#if 0
 	zt->t.useplc = global_useplc;
-	zt->t.native_plc = 1;
+#endif
+	zt->t.useplc = 0;
+	zt->t.native_plc = 0;
+
 	zt->t.desc_size = sizeof(struct codec_dahdi_pvt);
 	if ((res = ast_register_translator(&zt->t))) {
 		free(zt);




More information about the asterisk-commits mailing list