From 40d5b026c7f05b25760cbe8ad2f4881225c86013 Mon Sep 17 00:00:00 2001 From: Vadim Pisarevsky Date: Wed, 19 Sep 2012 16:57:10 +0400 Subject: [PATCH] fixed verbose mode in highgui's DirectShow wrapper (bug #2350) --- modules/highgui/src/cap_dshow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/highgui/src/cap_dshow.cpp b/modules/highgui/src/cap_dshow.cpp index 49c8463037..d197b015a5 100644 --- a/modules/highgui/src/cap_dshow.cpp +++ b/modules/highgui/src/cap_dshow.cpp @@ -1819,7 +1819,7 @@ bool videoInput::setVideoSettingCamera(int deviceID, long Property, long lValue, hr = getDevice(&VDList[deviceID]->pVideoInputFilter, deviceID, VDList[deviceID]->wDeviceName, VDList[deviceID]->nDeviceName); char propStr[16]; - getVideoPropertyAsString(Property,propStr); + getCameraPropertyAsString(Property,propStr); if (verbose) printf("Setting video setting %s.\n", propStr); hr = VDList[deviceID]->pVideoInputFilter->QueryInterface(IID_IAMCameraControl, (void**)&pIAMCameraControl); @@ -1876,7 +1876,7 @@ bool videoInput::getVideoSettingCamera(int deviceID, long Property, long &min, l } char propStr[16]; - getVideoPropertyAsString(Property,propStr); + getCameraPropertyAsString(Property,propStr); if (verbose) printf("Setting video setting %s.\n", propStr); pIAMCameraControl->GetRange(Property, &min, &max, &SteppingDelta, &defaultValue, &flags);