Commit 758bb0b3 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

V4L/DVB: tm6000: Be sure that the new buffer is empty

Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent d0669c87
...@@ -150,8 +150,6 @@ static inline void get_next_buf(struct tm6000_dmaqueue *dma_q, ...@@ -150,8 +150,6 @@ static inline void get_next_buf(struct tm6000_dmaqueue *dma_q,
/* Cleans up buffer - Usefull for testing for frame/URB loss */ /* Cleans up buffer - Usefull for testing for frame/URB loss */
outp = videobuf_to_vmalloc(&(*buf)->vb); outp = videobuf_to_vmalloc(&(*buf)->vb);
// if (outp)
// memset(outp, 0, (*buf)->vb.size);
return; return;
} }
...@@ -272,6 +270,7 @@ static int copy_streams(u8 *data, unsigned long len, ...@@ -272,6 +270,7 @@ static int copy_streams(u8 *data, unsigned long len,
voutp = videobuf_to_vmalloc (&vbuf->vb); voutp = videobuf_to_vmalloc (&vbuf->vb);
if (!voutp) if (!voutp)
return rc; return rc;
memset(voutp, 0, vbuf->vb.size);
} }
linewidth = vbuf->vb.width << 1; linewidth = vbuf->vb.width << 1;
pos = ((line << 1) - field - 1) * linewidth + pos = ((line << 1) - field - 1) * linewidth +
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment