Skip to content
Snippets Groups Projects
Commit 0985a233 authored by Michiel van Baak's avatar Michiel van Baak
Browse files

one more place I forgot

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@117870 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 6d018f07
No related branches found
No related tags found
No related merge requests found
......@@ -184,7 +184,7 @@ static struct ast_frame *nbs_xread(struct ast_channel *ast)
/* Some nice norms */
p->fr.datalen = 0;
p->fr.samples = 0;
p->fr.data = NULL;
p->fr.data.ptr = NULL;
p->fr.src = type;
p->fr.offset = 0;
p->fr.mallocd=0;
......@@ -214,7 +214,7 @@ static int nbs_xwrite(struct ast_channel *ast, struct ast_frame *frame)
/* Don't try tos end audio on-hook */
return 0;
}
if (nbs_write(p->nbs, frame->data, frame->datalen / 2) < 0)
if (nbs_write(p->nbs, frame->data.ptr, frame->datalen / 2) < 0)
return -1;
return 0;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment