Take out unnecessary setting of delivery times.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2510 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer
2004-03-21 07:35:40 +00:00
parent 730ca5f9b1
commit 97c5b2b7d7
2 changed files with 0 additions and 4 deletions

View File

@@ -123,8 +123,6 @@ static int playtones_generator(struct ast_channel *chan, void *data, int len, in
ps->f.samples = samples;
ps->f.offset = AST_FRIENDLY_OFFSET;
ps->f.data = ps->data;
ps->f.delivery.tv_sec = 0;
ps->f.delivery.tv_usec = 0;
ast_write(chan, &ps->f);
ps->pos += x;

View File

@@ -461,8 +461,6 @@ static int moh_generate(struct ast_channel *chan, void *data, int len, int sampl
f.samples = res / 2;
f.data = buf + AST_FRIENDLY_OFFSET / 2;
f.offset = AST_FRIENDLY_OFFSET;
f.delivery.tv_sec = 0;
f.delivery.tv_usec = 0;
if (ast_write(chan, &f)< 0) {
ast_log(LOG_WARNING, "Failed to write frame to '%s': %s\n", chan->name, strerror(errno));
return -1;