xiaoxiang781216 commented on code in PR #7787: URL: https://github.com/apache/nuttx/pull/7787#discussion_r1043123311
########## drivers/video/video.c: ########## @@ -972,16 +993,20 @@ static void cleanup_scenes_parameter(void) static void cleanup_resources(FAR video_mng_t *vmng) { - /* clean up resource */ + /* If in capture, stop */ - if ((vmng->video_inf.state == VIDEO_STATE_CAPTURE) || - (vmng->still_inf.state == VIDEO_STATE_CAPTURE)) + if (vmng->video_inf.state == VIDEO_STATE_CAPTURE) Review Comment: There are logic to avoid both stream enter capture state, please reference here: https://github.com/apache/nuttx/pull/7787/files#diff-1a26ae0c754d5e6afb90f3e5e58a10cd3054e4ae37ab148284b8b6513baa8af4R452-R454 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org