summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/ivtv/ivtv-yuv.c
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2008-10-09 17:04:23 +0200
committerHans Verkuil <hverkuil@xs4all.nl>2008-10-09 17:04:23 +0200
commita6bcb7bf0fe94ebb99b8df737207772a6b880f43 (patch)
treec61f6a99274220010b8bafb74750489b8d6d3590 /linux/drivers/media/video/ivtv/ivtv-yuv.c
parent12b75f712b18acee64dd614a79b2b0dd3c7c581d (diff)
downloadmediapointer-dvb-s2-a6bcb7bf0fe94ebb99b8df737207772a6b880f43.tar.gz
mediapointer-dvb-s2-a6bcb7bf0fe94ebb99b8df737207772a6b880f43.tar.bz2
ivtv - Fix potential race condition in yuv handler
From: Ian Armstrong <ian@iarmst.demon.co.uk> Modified yuv register update handling to remove a potential race condition which could occur with the first video frame. Also removed a forced yuv position update, since changing the source video dimensions or interlace settings doesn't affect the frame already being displayed. Priority: normal Signed-off-by: Ian Armstrong <ian@iarmst.demon.co.uk> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'linux/drivers/media/video/ivtv/ivtv-yuv.c')
-rw-r--r--linux/drivers/media/video/ivtv/ivtv-yuv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/linux/drivers/media/video/ivtv/ivtv-yuv.c b/linux/drivers/media/video/ivtv/ivtv-yuv.c
index 3092ff1d0..ee9110737 100644
--- a/linux/drivers/media/video/ivtv/ivtv-yuv.c
+++ b/linux/drivers/media/video/ivtv/ivtv-yuv.c
@@ -1147,6 +1147,7 @@ void ivtv_yuv_close(struct ivtv *itv)
IVTV_DEBUG_YUV("ivtv_yuv_close\n");
ivtv_waitq(&itv->vsync_waitq);
+ yi->running = 0;
atomic_set(&yi->next_dma_frame, -1);
atomic_set(&yi->next_fill_frame, 0);