Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(399)

Unified Diff: remoting/host/video_scheduler.cc

Issue 14305004: Simplify ScreenCapturer interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/host/ipc_video_frame_capturer.cc ('k') | remoting/host/video_scheduler_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/video_scheduler.cc
diff --git a/remoting/host/video_scheduler.cc b/remoting/host/video_scheduler.cc
index c927b3cbe2b5892b5db0fef4e754f4c3f007228c..42c85c676f527c539e9557c0459bdb4f431a31ef 100644
--- a/remoting/host/video_scheduler.cc
+++ b/remoting/host/video_scheduler.cc
@@ -178,7 +178,7 @@ void VideoScheduler::StopOnCaptureThread() {
DCHECK(capture_task_runner_->BelongsToCurrentThread());
// Stop |capturer_| and clear it to prevent pending tasks from using it.
- capturer_->Stop();
+ capturer_.reset();
alexeypa (please no reviews) 2013/04/22 16:23:19 |capturer_| can only be deleted only after the enc
Sergey Ulanov 2013/04/22 18:18:56 Oh, right. Do we need to call Stop() here at all?
alexeypa (please no reviews) 2013/04/22 18:36:37 Yes. It clears |delegate_| preventing the capturer
// |capture_timer_| must be destroyed on the thread on which it is used.
capture_timer_.reset();
« no previous file with comments | « remoting/host/ipc_video_frame_capturer.cc ('k') | remoting/host/video_scheduler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698