]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00176808 system crashes if switching between PAL & NTSC
authorTony Lin <tony.lin@freescale.com>
Wed, 14 Mar 2012 02:34:11 +0000 (10:34 +0800)
committerOliver Wendt <ow@karo-electronics.de>
Mon, 30 Sep 2013 12:11:14 +0000 (14:11 +0200)
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 <tony.lin@freescale.com>
drivers/media/video/mxc/output/mxc_vout.c

index 094f5b2f8d21bff516357fc151d3a1cf2f3f630d..2c22ceed9271103c06dc0be4c59439d82c2123d6 100644 (file)
@@ -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;
 }