mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-06 01:45:11 +00:00
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
This commit is contained in:
@@ -615,6 +615,8 @@ static struct ast_frame *oss_read(struct ast_channel *chan)
|
||||
f.offset = 0;
|
||||
f.src = type;
|
||||
f.mallocd = 0;
|
||||
f.delivery.tv_sec = 0;
|
||||
f.delivery.tv_usec = 0;
|
||||
|
||||
res = soundcard_setinput(0);
|
||||
if (res < 0) {
|
||||
@@ -650,6 +652,8 @@ static struct ast_frame *oss_read(struct ast_channel *chan)
|
||||
f.offset = AST_FRIENDLY_OFFSET;
|
||||
f.src = type;
|
||||
f.mallocd = 0;
|
||||
f.delivery.tv_sec = 0;
|
||||
f.delivery.tv_usec = 0;
|
||||
#if 0
|
||||
{ static int fd = -1;
|
||||
if (fd < 0)
|
||||
|
||||
Reference in New Issue
Block a user