pkarashchenko commented on code in PR #7787:
URL: https://github.com/apache/nuttx/pull/7787#discussion_r1043115094


##########
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:
   The flow now is changed. Before we had one API call and now have two calls. 
Is that expected?



-- 
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

Reply via email to