aboutsummaryrefslogtreecommitdiffstats
path: root/channels/console_video.c
diff options
context:
space:
mode:
authorrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2008-06-29 12:45:59 +0000
committerrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2008-06-29 12:45:59 +0000
commitc5fca957cec1b9f7f7ef94c6f7648e6b6def659c (patch)
treea4192eb5d66f3b57f87c09c6062ff4ca9b74ccc5 /channels/console_video.c
parente4e30b0abe203f790609026d6da0eedbb548b304 (diff)
make this compile after ast_frame's data field changed to a union
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@126308 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/console_video.c')
-rw-r--r--channels/console_video.c4
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;
}