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

Unified Diff: webrtc/api/videosource.cc

Issue 1744153002: Reland Remove unused cricket::VideoCapturer methods. Originally reviewed and landed as patchset #2 … (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fix lint warnings. 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 | « webrtc/api/test/fakeperiodicvideocapturer.h ('k') | webrtc/media/base/capturemanager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/api/videosource.cc
diff --git a/webrtc/api/videosource.cc b/webrtc/api/videosource.cc
index 3a55cd501899ff7d37b5ecbed6ab1c9019165e2a..e073fae23a4e69f01848ddc35318a543e293c642 100644
--- a/webrtc/api/videosource.cc
+++ b/webrtc/api/videosource.cc
@@ -11,6 +11,7 @@
#include "webrtc/api/videosource.h"
#include <cstdlib>
+#include <string>
#include <vector>
#include "webrtc/api/mediaconstraintsinterface.h"
@@ -55,7 +56,6 @@ GetReadyState(cricket::CaptureState state) {
case cricket::CS_RUNNING:
return MediaSourceInterface::kLive;
case cricket::CS_FAILED:
- case cricket::CS_NO_DEVICE:
case cricket::CS_STOPPED:
return MediaSourceInterface::kEnded;
case cricket::CS_PAUSED:
@@ -403,7 +403,7 @@ void VideoSource::RemoveSink(
// This signal is triggered for all video capturers. Not only the one we are
// interested in.
void VideoSource::OnStateChange(cricket::VideoCapturer* capturer,
- cricket::CaptureState capture_state) {
+ cricket::CaptureState capture_state) {
if (capturer == video_capturer_.get()) {
SetState(GetReadyState(capture_state));
}
« no previous file with comments | « webrtc/api/test/fakeperiodicvideocapturer.h ('k') | webrtc/media/base/capturemanager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698