mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-18 18:58:22 +00:00
Initialize frame for playtones just in case
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3138 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -123,6 +123,8 @@ static int playtones_generator(struct ast_channel *chan, void *data, int len, in
|
|||||||
ps->f.samples = samples;
|
ps->f.samples = samples;
|
||||||
ps->f.offset = AST_FRIENDLY_OFFSET;
|
ps->f.offset = AST_FRIENDLY_OFFSET;
|
||||||
ps->f.data = ps->data;
|
ps->f.data = ps->data;
|
||||||
|
ps->f.delivery.tv_sec = 0;
|
||||||
|
ps->f.delivery.tv_usec = 0;
|
||||||
ast_write(chan, &ps->f);
|
ast_write(chan, &ps->f);
|
||||||
|
|
||||||
ps->pos += x;
|
ps->pos += x;
|
||||||
|
Reference in New Issue
Block a user