diff --git a/modules/video_capture/windows/help_functions_ds.cc b/modules/video_capture/windows/help_functions_ds.cc index 58b9de91c7..b767726107 100644 --- a/modules/video_capture/windows/help_functions_ds.cc +++ b/modules/video_capture/windows/help_functions_ds.cc @@ -30,7 +30,6 @@ LONGLONG GetMaxOfFrameArray(LONGLONG* maxFps, long size) { } IPin* GetInputPin(IBaseFilter* filter) { - HRESULT hr; IPin* pin = NULL; IEnumPins* pPinEnum = NULL; filter->EnumPins(&pPinEnum); @@ -39,7 +38,7 @@ IPin* GetInputPin(IBaseFilter* filter) { } // get first unconnected pin - hr = pPinEnum->Reset(); // set to first pin + pPinEnum->Reset(); // set to first pin while (S_OK == pPinEnum->Next(1, &pin, NULL)) { PIN_DIRECTION pPinDir;