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

Unified Diff: webrtc/api/androidvideocapturer.cc

Issue 1733673002: Removed unused cricket::VideoCapturer methods (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fixed thread checker for android. SetCaptureFormat is called on the thread where the capturer is cr… Created 4 years, 10 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 | « no previous file | webrtc/api/test/fakeperiodicvideocapturer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/api/androidvideocapturer.cc
diff --git a/webrtc/api/androidvideocapturer.cc b/webrtc/api/androidvideocapturer.cc
index a24d55c168e03f1fded01d02224babf7879508e6..db942898383a3353d4523f2bec12117644137a10 100644
--- a/webrtc/api/androidvideocapturer.cc
+++ b/webrtc/api/androidvideocapturer.cc
@@ -152,7 +152,7 @@ void AndroidVideoCapturer::Stop() {
delegate_->Stop();
current_state_ = cricket::CS_STOPPED;
- SignalStateChange(this, current_state_);
+ SetCaptureState(current_state_);
}
bool AndroidVideoCapturer::IsRunning() {
@@ -173,11 +173,7 @@ void AndroidVideoCapturer::OnCapturerStarted(bool success) {
if (new_state == current_state_)
return;
current_state_ = new_state;
-
- // TODO(perkj): SetCaptureState can not be used since it posts to |thread_|.
- // But |thread_ | is currently just the thread that happened to create the
- // cricket::VideoCapturer.
- SignalStateChange(this, new_state);
+ SetCaptureState(new_state);
}
void AndroidVideoCapturer::OnIncomingFrame(
« no previous file with comments | « no previous file | webrtc/api/test/fakeperiodicvideocapturer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698