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

Unified Diff: talk/media/base/videocapturer.cc

Issue 1655793003: Make cricket::VideoCapturer implement VideoSourceInterface (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Adding VideoSourceInterface and letting cricket::VideoCapturer implement it Created 4 years, 11 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
Index: talk/media/base/videocapturer.cc
diff --git a/talk/media/base/videocapturer.cc b/talk/media/base/videocapturer.cc
index d525a4188edd2ac4ab6e2ee7b6bf9b3b4d6dc954..0028f47f2529c6b47def70cfd9a5f024c5e443d6 100644
--- a/talk/media/base/videocapturer.cc
+++ b/talk/media/base/videocapturer.cc
@@ -350,7 +350,7 @@ void VideoCapturer::OnFrameCaptured(VideoCapturer*,
}
}
- if (SignalVideoFrame.is_empty()) {
+ if (SignalVideoFrame.is_empty() && !HasSinks()) {
return;
}
@@ -533,6 +533,7 @@ void VideoCapturer::OnFrameCaptured(VideoCapturer*,
// TODO(pthatcher): Use frame_factory_->CreateBlackFrame() instead.
adapted_frame->SetToBlack();
}
+ DeliverFrame(adapted_frame.get());
SignalVideoFrame(this, adapted_frame.get());
pthatcher 2016/02/01 18:40:54 We should leave a comment about how we fire both w
perkj_webrtc 2016/02/02 16:24:00 SignalVideoFrame now removed. I was just not done
UpdateStats(captured_frame);

Powered by Google App Engine
This is Rietveld 408576698