diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2008-10-09 17:04:23 +0200 |
---|---|---|
committer | Hans Verkuil <hverkuil@xs4all.nl> | 2008-10-09 17:04:23 +0200 |
commit | a6bcb7bf0fe94ebb99b8df737207772a6b880f43 (patch) | |
tree | c61f6a99274220010b8bafb74750489b8d6d3590 /linux/drivers/media/video/ivtv/ivtv-yuv.c | |
parent | 12b75f712b18acee64dd614a79b2b0dd3c7c581d (diff) | |
download | mediapointer-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.c | 1 |
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); |