Chromium Code Reviews

Unified Diff: content/renderer/media/video_capture_impl.cc

Issue 1320183003: Preliminary change for new rtc rendering algorithm (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Consider capture buffer contention Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « no previous file | content/renderer/media/webmediaplayer_ms.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/video_capture_impl.cc
diff --git a/content/renderer/media/video_capture_impl.cc b/content/renderer/media/video_capture_impl.cc
index 87bfc88814904bb6b70b1ae4953f8bb9a5341e7f..4e7c2b79a3b0cad677d97a8a5622704414c81d3b 100644
--- a/content/renderer/media/video_capture_impl.cc
+++ b/content/renderer/media/video_capture_impl.cc
@@ -343,6 +343,8 @@ void VideoCaptureImpl::OnBufferReceived(
coded_size,
timestamp - first_frame_timestamp_);
}
+ frame->metadata()->SetTimeTicks(media::VideoFrameMetadata::REFERENCE_TIME,
+ timestamp);
frame->AddDestructionObserver(
base::Bind(&VideoCaptureImpl::DidFinishConsumingFrame, frame->metadata(),
release_sync_point_storage,
« no previous file with comments | « no previous file | content/renderer/media/webmediaplayer_ms.h » ('j') | no next file with comments »

Powered by Google App Engine