summaryrefslogtreecommitdiff
path: root/channels/chan_modem_i4l.c
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2004-06-24 13:27:44 +0000
committerMark Spencer <markster@digium.com>2004-06-24 13:27:44 +0000
commitb0972b8d1ff624462ddd8dfcc9389611d972c32a (patch)
treeefb011cde3906d2227c05b119ee906285623cf31 /channels/chan_modem_i4l.c
parentf6f67727c60385321ce27ac426a92b693125d8a4 (diff)
Make sure other drivers also zero delivery (thanks to steven davies)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3295 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_modem_i4l.c')
-rwxr-xr-xchannels/chan_modem_i4l.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/channels/chan_modem_i4l.c b/channels/chan_modem_i4l.c
index ce7de4174..892f4c09f 100755
--- a/channels/chan_modem_i4l.c
+++ b/channels/chan_modem_i4l.c
@@ -236,6 +236,8 @@ static struct ast_frame *i4l_handle_escape(struct ast_modem_pvt *p, char esc)
p->fr.samples = 0;
p->fr.offset = 0;
p->fr.mallocd = 0;
+ p->fr.delivery.tv_sec = 0;
+ p->fr.delivery.tv_usec = 0;
if (esc && option_debug)
ast_log(LOG_DEBUG, "Escaped character '%c'\n", esc);
@@ -438,6 +440,8 @@ static struct ast_frame *i4l_read(struct ast_modem_pvt *p)
p->fr.data = p->obuf;
p->fr.datalen = p->obuflen;
p->fr.mallocd = 0;
+ p->fr.delivery.tv_sec = 0;
+ p->fr.delivery.tv_usec = 0;
p->fr.offset = AST_FRIENDLY_OFFSET;
p->fr.src = __FUNCTION__;
p->obuflen = 0;