[Asterisk-cvs] asterisk translate.c,1.16,1.17
markster at lists.digium.com
markster at lists.digium.com
Fri Mar 19 10:08:26 CST 2004
Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv5638
Modified Files:
translate.c
Log Message:
First pass at populating delivery times through translation. Not sure how this will affect translations with different packet sizes, but it *ought* to resolve itself in the end.
Index: translate.c
===================================================================
RCS file: /usr/cvsroot/asterisk/translate.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- translate.c 1 Mar 2004 07:17:01 -0000 1.16
+++ translate.c 19 Mar 2004 15:03:43 -0000 1.17
@@ -130,9 +130,12 @@
{
struct ast_trans_pvt *p;
struct ast_frame *out;
+ struct timeval delivery;
p = path;
/* Feed the first frame into the first translator */
p->step->framein(p->state, f);
+ delivery.tv_sec = f->delivery.tv_sec;
+ delivery.tv_usec = f->delivery.tv_usec;
if (consume)
ast_frfree(f);
while(p) {
@@ -144,8 +147,11 @@
return this frame */
if (p->next)
p->next->step->framein(p->next->state, out);
- else
+ else {
+ out->delivery.tv_sec = f->delivery.tv_sec;
+ out->delivery.tv_usec = f->delivery.tv_usec;
return out;
+ }
p = p->next;
}
ast_log(LOG_WARNING, "I should never get here...\n");
More information about the svn-commits
mailing list