From e6f17e50c43177fccb5091c75894627ae2fc2376 Mon Sep 17 00:00:00 2001 From: Luigi Rizzo Date: Sun, 29 Jun 2008 12:45:59 +0000 Subject: make this compile after ast_frame's data field changed to a union git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@126308 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channels/console_video.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'channels/console_video.c') diff --git a/channels/console_video.c b/channels/console_video.c index dbd881482..c17cb6d20 100644 --- a/channels/console_video.c +++ b/channels/console_video.c @@ -608,11 +608,11 @@ int console_write_video(struct ast_channel *chan, struct ast_frame *f) } v->next_seq++; - if (f->data == NULL || f->datalen < 2) { + if (f->data.ptr == NULL || f->datalen < 2) { ast_log(LOG_WARNING, "empty video frame, discard\n"); return 0; } - if (v->d_callbacks->dec_decap(v->dec_in_cur, f->data, f->datalen)) { + if (v->d_callbacks->dec_decap(v->dec_in_cur, f->data.ptr, f->datalen)) { ast_log(LOG_WARNING, "error in dec_decap, enter discard\n"); v->discard = 1; } -- cgit v1.2.3