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

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

Issue 2083813003: Revert of Re-Reland: Make media/capture gn and gyps produce components (patchset #2 id:20001 of htt… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2774
Patch Set: Created 4 years, 6 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/filter_base_win.cc
diff --git a/media/capture/video/win/filter_base_win.cc b/media/capture/video/win/filter_base_win.cc
index c43ec64bf11b8bef8de26a71503686d171c0eec2..166b8600146d49abfc541d18871142eba162adb7 100644
--- a/media/capture/video/win/filter_base_win.cc
+++ b/media/capture/video/win/filter_base_win.cc
@@ -38,8 +38,7 @@ class PinEnumerator final : public IEnumPins,
STDMETHOD(Next)(ULONG count, IPin** pins, ULONG* fetched) override {
ULONG pins_fetched = 0;
while (pins_fetched < count && filter_->NoOfPins() > index_) {
- index_++;
- IPin* pin = filter_->GetPin(static_cast<int>(index_));
+ IPin* pin = filter_->GetPin(index_++);
pin->AddRef();
pins[pins_fetched++] = pin;
}
« no previous file with comments | « media/capture/video/video_capture_device_info.h ('k') | media/capture/video/win/video_capture_device_factory_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698