Chromium Code Reviews

Unified Diff: webrtc/api/androidvideocapturer.cc

Issue 1740963002: Revert of Removed unused cricket::VideoCapturer methods (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« 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 db942898383a3353d4523f2bec12117644137a10..a24d55c168e03f1fded01d02224babf7879508e6 100644
--- a/webrtc/api/androidvideocapturer.cc
+++ b/webrtc/api/androidvideocapturer.cc
@@ -152,7 +152,7 @@
delegate_->Stop();
current_state_ = cricket::CS_STOPPED;
- SetCaptureState(current_state_);
+ SignalStateChange(this, current_state_);
}
bool AndroidVideoCapturer::IsRunning() {
@@ -173,7 +173,11 @@
if (new_state == current_state_)
return;
current_state_ = new_state;
- SetCaptureState(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);
}
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