summaryrefslogtreecommitdiffstats
path: root/remoting/host
diff options
context:
space:
mode:
Diffstat (limited to 'remoting/host')
-rw-r--r--remoting/host/screen_recorder.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/remoting/host/screen_recorder.cc b/remoting/host/screen_recorder.cc
index be4fbeb..d4ba2cf 100644
--- a/remoting/host/screen_recorder.cc
+++ b/remoting/host/screen_recorder.cc
@@ -236,9 +236,10 @@ void ScreenRecorder::DoFinishOneRecording() {
--recordings_;
DCHECK_GE(recordings_, 0);
- // Try to do a capture again. Note that the following method may do nothing
- // if it is too early to perform a capture.
- DoCapture();
+ // Try to do a capture again only if |frame_skipped_| is set to true by
+ // capture timer.
+ if (frame_skipped_)
+ DoCapture();
}
// Network thread --------------------------------------------------------------