From 6d018f07740e2348367ddbea99df3af2f2d6e14c Mon Sep 17 00:00:00 2001 From: Michiel van Baak Date: Thu, 22 May 2008 17:16:08 +0000 Subject: [PATCH] chan_console fixes because of ast_frame.data => ast_frame.data.ptr git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@117834 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channels/chan_console.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/channels/chan_console.c b/channels/chan_console.c index 0fe3cbef4f..4ad5e793c8 100644 --- a/channels/chan_console.c +++ b/channels/chan_console.c @@ -273,7 +273,7 @@ static void *stream_monitor(void *data) .frametype = AST_FRAME_VOICE, .subclass = AST_FORMAT_SLINEAR16, .src = "console_stream_monitor", - .data = buf, + .data.ptr = buf, .datalen = sizeof(buf), .samples = sizeof(buf) / sizeof(int16_t), }; @@ -592,7 +592,7 @@ static int console_write(struct ast_channel *chan, struct ast_frame *f) { struct console_pvt *pvt = chan->tech_pvt; - Pa_WriteStream(pvt->stream, f->data, f->samples); + Pa_WriteStream(pvt->stream, f->data.ptr, f->samples); return 0; } @@ -1084,7 +1084,7 @@ static char *cli_console_sendtext(struct ast_cli_entry *e, int cmd, struct ast_c struct console_pvt *pvt = get_active_pvt(); struct ast_frame f = { .frametype = AST_FRAME_TEXT, - .data = buf, + .data.ptr = buf, .src = "console_send_text", }; int len;