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

Unified Diff: webrtc/test/vcm_capturer.cc

Issue 2534553002: Replace VideoCaptureDataCallback by VideoSinkInterface. (Closed)
Patch Set: Break overlong lines. Created 4 years 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/test/vcm_capturer.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/test/vcm_capturer.cc
diff --git a/webrtc/test/vcm_capturer.cc b/webrtc/test/vcm_capturer.cc
index c79f99ffbae86b916c793ac48f7a6e0db8fac413..535e9bf219db24f370bd547e4d617eb8df724c1d 100644
--- a/webrtc/test/vcm_capturer.cc
+++ b/webrtc/test/vcm_capturer.cc
@@ -20,7 +20,7 @@ VcmCapturer::VcmCapturer() : started_(false), sink_(nullptr), vcm_(NULL) {}
bool VcmCapturer::Init(size_t width, size_t height, size_t target_fps) {
VideoCaptureModule::DeviceInfo* device_info =
- VideoCaptureFactory::CreateDeviceInfo(42); // Any ID (42) will do.
+ VideoCaptureFactory::CreateDeviceInfo();
char device_name[256];
char unique_name[256];
@@ -31,8 +31,8 @@ bool VcmCapturer::Init(size_t width, size_t height, size_t target_fps) {
return false;
}
- vcm_ = webrtc::VideoCaptureFactory::Create(0, unique_name);
- vcm_->RegisterCaptureDataCallback(*this);
+ vcm_ = webrtc::VideoCaptureFactory::Create(unique_name);
+ vcm_->RegisterCaptureDataCallback(this);
device_info->GetCapability(vcm_->CurrentDeviceName(), 0, capability_);
delete device_info;
@@ -100,14 +100,11 @@ void VcmCapturer::Destroy() {
VcmCapturer::~VcmCapturer() { Destroy(); }
-void VcmCapturer::OnIncomingCapturedFrame(const int32_t id,
- const VideoFrame& frame) {
+void VcmCapturer::OnFrame(const VideoFrame& frame) {
rtc::CritScope lock(&crit_);
if (started_ && sink_)
sink_->OnFrame(frame);
}
-void VcmCapturer::OnCaptureDelayChanged(const int32_t id, const int32_t delay) {
-}
} // test
} // webrtc
« no previous file with comments | « webrtc/test/vcm_capturer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698