summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/ivtv/ivtv-ioctl.c
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2007-08-20 21:01:58 +0200
committerHans Verkuil <hverkuil@xs4all.nl>2007-08-20 21:01:58 +0200
commit3fc385d8f4e2e1404a59e12eefda5193eb5f6bc2 (patch)
tree1473de7a801ff8ebc5d21efca3e6260b59ba584d /linux/drivers/media/video/ivtv/ivtv-ioctl.c
parent638acf07e1921e20c61cd6fa47effac3dd17960b (diff)
downloadmediapointer-dvb-s2-3fc385d8f4e2e1404a59e12eefda5193eb5f6bc2.tar.gz
mediapointer-dvb-s2-3fc385d8f4e2e1404a59e12eefda5193eb5f6bc2.tar.bz2
ivtv: fix output mode processing: UDMA_YUV wasn't cleared.
From: Hans Verkuil <hverkuil@xs4all.nl> - Always clear when stopping the decoder - Clear if the filehandle that is being close was used for UDMA_YUV output. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'linux/drivers/media/video/ivtv/ivtv-ioctl.c')
-rw-r--r--linux/drivers/media/video/ivtv/ivtv-ioctl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/linux/drivers/media/video/ivtv/ivtv-ioctl.c b/linux/drivers/media/video/ivtv/ivtv-ioctl.c
index 1e8d288b9..d5a559073 100644
--- a/linux/drivers/media/video/ivtv/ivtv-ioctl.c
+++ b/linux/drivers/media/video/ivtv/ivtv-ioctl.c
@@ -1351,6 +1351,8 @@ static int ivtv_decoder_ioctls(struct file *filp, unsigned int cmd, void *arg)
ivtv_release_stream(s);
return -EBUSY;
}
+ /* Mark that this file handle started the UDMA_YUV mode */
+ id->yuv_frames = 1;
if (args->y_source == NULL)
return 0;
return ivtv_yuv_prep_frame(itv, args);