[asterisk-commits] mvanbaak: trunk r117834 - /trunk/channels/chan_console.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu May 22 12:16:11 CDT 2008


Author: mvanbaak
Date: Thu May 22 12:16:08 2008
New Revision: 117834

URL: http://svn.digium.com/view/asterisk?view=rev&rev=117834
Log:
chan_console fixes because of ast_frame.data => ast_frame.data.ptr

Modified:
    trunk/channels/chan_console.c

Modified: trunk/channels/chan_console.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_console.c?view=diff&rev=117834&r1=117833&r2=117834
==============================================================================
--- trunk/channels/chan_console.c (original)
+++ trunk/channels/chan_console.c Thu May 22 12:16:08 2008
@@ -273,7 +273,7 @@
 		.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 @@
 {
 	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 @@
 	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;




More information about the asterisk-commits mailing list