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; |
} |