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