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

Unified Diff: media/capture/video/win/sink_input_pin_win.cc

Issue 1324683004: Win Video Capture: Sending the timestamps provided by the driver to the capture pipeline (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
Index: media/capture/video/win/sink_input_pin_win.cc
diff --git a/media/capture/video/win/sink_input_pin_win.cc b/media/capture/video/win/sink_input_pin_win.cc
index 9c515a3422e722790a7cfc051d8ff9150e91bdaf..7bc8099ee42a1c3946f6b41f65c2ea89b219cab8 100644
--- a/media/capture/video/win/sink_input_pin_win.cc
+++ b/media/capture/video/win/sink_input_pin_win.cc
@@ -182,7 +182,11 @@ HRESULT SinkInputPin::Receive(IMediaSample* sample) {
if (FAILED(sample->GetPointer(&buffer)))
return S_FALSE;
- observer_->FrameReceived(buffer, length);
+ REFERENCE_TIME start_time, end_time;
+
+ sample->GetTime(&start_time, &end_time);
+
mcasas 2015/09/09 23:33:26 I deeply distrust all this code. Would you mind ad
qiangchen 2015/09/10 18:03:01 Done. Added a fallback to old code path if the dr
+ observer_->FrameReceived(buffer, length, start_time);
return S_OK;
}

Powered by Google App Engine
This is Rietveld 408576698