diff options
author | Luigi Rizzo <rizzo@icir.org> | 2008-06-29 12:45:59 +0000 |
---|---|---|
committer | Luigi Rizzo <rizzo@icir.org> | 2008-06-29 12:45:59 +0000 |
commit | e6f17e50c43177fccb5091c75894627ae2fc2376 (patch) | |
tree | a4192eb5d66f3b57f87c09c6062ff4ca9b74ccc5 /channels/console_video.c | |
parent | 044a7b945f28b837b3fc987f236cee28e0429e46 (diff) |
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
Diffstat (limited to 'channels/console_video.c')
-rw-r--r-- | channels/console_video.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |