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

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Dec 4 23:21:32 CST 2008


Author: sruffell
Date: Thu Dec  4 23:21:32 2008
New Revision: 161180

URL: http://svn.digium.com/view/asterisk?view=rev&rev=161180
Log:
Not sure if this is needed....but it is what I've been testing with.

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=161180&r1=161179&r2=161180
==============================================================================
--- team/sruffell/asterisk-1.4-transcoder/codecs/codec_dahdi.c (original)
+++ team/sruffell/asterisk-1.4-transcoder/codecs/codec_dahdi.c Thu Dec  4 23:21:32 2008
@@ -230,7 +230,7 @@
 				ztp->samples_in_buffer);
 		}
 	}
-	pvt->samples = 0;
+	pvt->samples += f->samples;
 	pvt->datalen = 0;
 	return -1;
 }
@@ -279,7 +279,7 @@
 		pvt->f.data = pvt->outbuf;
 		ast_set_flag(&pvt->f, AST_FRFLAG_FROM_TRANSLATOR);
 
-		pvt->samples = ztp->required_samples;
+		pvt->samples = 0;
 		pvt->datalen = 0;
 		return &pvt->f;
 	}
@@ -306,7 +306,7 @@
 		}
 	}
 	dahdi_write_frame(ztp, f->data, f->datalen);
-	pvt->samples = 0;
+	pvt->samples += f->samples;
 	pvt->datalen = 0;
 	return -1;
 }
@@ -365,7 +365,7 @@
 		pvt->f.data = pvt->outbuf;
 		pvt->f.samples = ztp->required_samples;
 		ast_set_flag(&pvt->f, AST_FRFLAG_FROM_TRANSLATOR);
-		pvt->samples = ztp->required_samples;
+		pvt->samples = 0;
 
 		return &pvt->f;
 	}




More information about the asterisk-commits mailing list