From 17c42f308cccdffa51939504b39c167f0fe37aa4 Mon Sep 17 00:00:00 2001 From: Darren Salt Date: Tue, 26 Jan 2010 02:52:28 +0000 Subject: Get rid of a few compiler warnings. --- src/input/input_v4l2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/input/input_v4l2.c b/src/input/input_v4l2.c index 903293057..88156d405 100644 --- a/src/input/input_v4l2.c +++ b/src/input/input_v4l2.c @@ -236,7 +236,7 @@ static buf_element_t* v4l2_input_read_block(input_plugin_t *this_gen, fifo_buffe this->video->index = 0; buf->type = BUF_VIDEO_YUY2; } else { - lprintf("Sending video frame (sent %d of %d)\n", this->video->index, this->video->buffers[this->video->inbuf.index].length); + lprintf("Sending video frame (sent %zd of %zd)\n", this->video->index, this->video->buffers[this->video->inbuf.index].length); /* TODO: Add audio support */ this->video->headerSent = v4l2_input_dequeue_video_buffer(this, buf); if (this->video->headerSent < 0) @@ -285,7 +285,7 @@ static int v4l2_input_dequeue_video_buffer(v4l2_input_plugin_t *this, buf_elemen if (output->size > output->max_size) output->size = output->max_size; - xine_fast_memcpy (output->content, this->video->buffers[this->video->inbuf.index].start + this->video->index, output->size); + xine_fast_memcpy (output->content, (char *)this->video->buffers[this->video->inbuf.index].start + this->video->index, output->size); this->video->index += output->size; if (this->video->index == this->video->buffers[this->video->inbuf.index].length) -- cgit v1.2.3