media: ionvideo: fix adaptiveEosFlushSeek bug

PD#152800: init inovideo queue when flush

Change-Id: I3fdf24407586ef191905a37cfad1957dab2c9f6c
Signed-off-by: kunpeng.tang <kunpeng.tang@amlogic.com>
This commit is contained in:
kunpeng.tang
2017-11-10 14:13:41 +08:00
committed by Jianxin Pan
parent 442caae23c
commit 56136d1572

View File

@@ -504,6 +504,10 @@ static int vidioc_streamoff(struct file *file, void *priv, enum v4l2_buf_type i)
* Typical driver might need to wait here until dma engine stops.
* In this case we can abort imiedetly, so it's just a noop.
*/
v4l2q_init(&dev->input_queue, IONVIDEO_POOL_SIZE + 1,
&dev->ionvideo_input_queue[0]);
v4l2q_init(&dev->output_queue, IONVIDEO_POOL_SIZE + 1,
&dev->ionvideo_output_queue[0]);
return 0;
}