mirror of
https://github.com/opencv/opencv.git
synced 2024-11-25 11:40:44 +08:00
fixed verbose mode in highgui's DirectShow wrapper (bug #2350)
This commit is contained in:
parent
54705a009a
commit
40d5b026c7
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user