aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_zapbarge.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/app_zapbarge.c')
-rw-r--r--apps/app_zapbarge.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_zapbarge.c b/apps/app_zapbarge.c
index bb8c4cbb3..892dd1ec0 100644
--- a/apps/app_zapbarge.c
+++ b/apps/app_zapbarge.c
@@ -207,7 +207,7 @@ zapretry:
if (f->frametype == AST_FRAME_VOICE) {
if (f->subclass == AST_FORMAT_ULAW) {
/* Carefully write */
- careful_write(fd, f->data, f->datalen);
+ careful_write(fd, f->data.ptr, f->datalen);
} else
ast_log(LOG_WARNING, "Huh? Got a non-ulaw (%d) frame in the conference\n", f->subclass);
}
@@ -221,7 +221,7 @@ zapretry:
fr.subclass = AST_FORMAT_ULAW;
fr.datalen = res;
fr.samples = res;
- fr.data = buf;
+ fr.data.ptr = buf;
fr.offset = AST_FRIENDLY_OFFSET;
if (ast_write(chan, &fr) < 0) {
ast_log(LOG_WARNING, "Unable to write frame to channel: %s\n", strerror(errno));