From 1e5a600d13ad6e49dfbf769b3d5b9a97e8a1735f Mon Sep 17 00:00:00 2001 From: Vadim Pisarevsky Date: Sat, 31 Mar 2012 08:56:48 +0000 Subject: [PATCH] fixed video capturing on Mac running Windows (ticket #988) --- modules/highgui/src/cap_dshow.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/highgui/src/cap_dshow.cpp b/modules/highgui/src/cap_dshow.cpp index 1a92b514f..16bcef32e 100644 --- a/modules/highgui/src/cap_dshow.cpp +++ b/modules/highgui/src/cap_dshow.cpp @@ -754,14 +754,14 @@ videoDevice::videoDevice(){ width = 0; height = 0; - tryWidth = 0; - tryHeight = 0; + tryWidth = 640; + tryHeight = 480; tryVideoType = MEDIASUBTYPE_RGB24; nFramesForReconnect= 10000; nFramesRunning = 0; myID = -1; - tryDiffSize = false; + tryDiffSize = true; useCrossbar = false; readyToCapture = false; sizeSet = false;