From 36abebba0d67832e1b9c7280be3079ea34bb2fc0 Mon Sep 17 00:00:00 2001 From: Tony Lin Date: Wed, 14 Mar 2012 10:34:11 +0800 Subject: [PATCH] ENGR00176808 system crashes if switching between PAL & NTSC it's a video out issue instead of camera/tvin. the queue list and active list should be cleared in stream off function. Signed-off-by: Tony Lin --- drivers/media/video/mxc/output/mxc_vout.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/media/video/mxc/output/mxc_vout.c b/drivers/media/video/mxc/output/mxc_vout.c index 094f5b2f8d21..2c22ceed9271 100644 --- a/drivers/media/video/mxc/output/mxc_vout.c +++ b/drivers/media/video/mxc/output/mxc_vout.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2011 Freescale Semiconductor, Inc. All Rights Reserved. + * Copyright (C) 2011-2012 Freescale Semiconductor, Inc. All Rights Reserved. */ /* @@ -1459,6 +1459,8 @@ static int mxc_vidioc_streamoff(struct file *file, void *fh, enum v4l2_buf_type ret = videobuf_streamoff(&vout->vbq); } + INIT_LIST_HEAD(&vout->queue_list); + INIT_LIST_HEAD(&vout->active_list); return ret; } -- 2.39.5