video_capture_started_ = false;When stopping the capture stream, we should also reset `is_capturing_frame_ = false;`.
Otherwise, if we stop the stream while a frame is in the middle of being captured, `is_capturing_frame_` will remain `true` and carry over to the next generation, preventing `RecaptureLatestFrameAsDirty` from working properly until the next generation finishes capturing its first frame.
is_capturing_frame_ = false;If a delayed `OnCaptureResult` from a previous generation runs while the current generation is capturing a frame, it will prematurely clear `is_capturing_frame_`. This can cause subsequent calls to `RecaptureLatestFrameAsDirty` to incorrectly execute synchronous captures because they think no frame capture is in progress.
`is_capturing_frame_ = false;` should be moved after the generation check below.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
When stopping the capture stream, we should also reset `is_capturing_frame_ = false;`.
Otherwise, if we stop the stream while a frame is in the middle of being captured, `is_capturing_frame_` will remain `true` and carry over to the next generation, preventing `RecaptureLatestFrameAsDirty` from working properly until the next generation finishes capturing its first frame.
Done
If a delayed `OnCaptureResult` from a previous generation runs while the current generation is capturing a frame, it will prematurely clear `is_capturing_frame_`. This can cause subsequent calls to `RecaptureLatestFrameAsDirty` to incorrectly execute synchronous captures because they think no frame capture is in progress.
`is_capturing_frame_ = false;` should be moved after the generation check below.
Done
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Auto-Submit | +1 |
| Commit-Queue | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |