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

Unified Diff: examples/unityplugin/video_observer.cc

Issue 3013733002: WebRTC Unity Plugin Rebase
Patch Set: Add Comment Created 3 years, 3 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 | « examples/unityplugin/unity_plugin_apis.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/unityplugin/video_observer.cc
diff --git a/examples/unityplugin/video_observer.cc b/examples/unityplugin/video_observer.cc
index 821acd66aaaedeaa627e33ebaab36e9b5fa08a6a..4d8d5f73780cb193bad817504cbd4e21ca1c8c1e 100644
--- a/examples/unityplugin/video_observer.cc
+++ b/examples/unityplugin/video_observer.cc
@@ -17,11 +17,12 @@ void VideoObserver::SetVideoCallback(I420FRAMEREADY_CALLBACK callback) {
void VideoObserver::OnFrame(const webrtc::VideoFrame& frame) {
std::unique_lock<std::mutex> lock(mutex);
- rtc::scoped_refptr<webrtc::PlanarYuvBuffer> buffer(
+ rtc::scoped_refptr<webrtc::I420BufferInterface> buffer(
frame.video_frame_buffer()->ToI420());
if (OnI420FrameReady) {
- OnI420FrameReady(buffer->DataY(), buffer->DataU(), buffer->DataV(),
- buffer->StrideY(), buffer->StrideU(), buffer->StrideV(),
- frame.width(), frame.height());
+ OnI420FrameReady(
+ buffer->DataY(), buffer->DataU(), buffer->DataV(), nullptr, /*DataA*/
+ buffer->StrideY(), buffer->StrideU(), buffer->StrideV(), 0, /*StrideA*/
+ frame.width(), frame.height());
}
}
« no previous file with comments | « examples/unityplugin/unity_plugin_apis.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698