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(); |