|
|
|
|
@ -226,8 +226,8 @@ int VideoDev_VFW::Open() {
|
|
|
|
|
capSetUserData(cap, this);
|
|
|
|
|
|
|
|
|
|
// set video source, capture format and size
|
|
|
|
|
capDlgVideoSource(cap);
|
|
|
|
|
capDlgVideoFormat(cap);
|
|
|
|
|
//capDlgVideoSource(cap);
|
|
|
|
|
//capDlgVideoFormat(cap);
|
|
|
|
|
|
|
|
|
|
CAPTUREPARMS cp;
|
|
|
|
|
if(!capCaptureGetSetup(cap, &cp, sizeof(cp))) {
|
|
|
|
|
@ -426,7 +426,9 @@ void VideoDev_VFW::HandleMessages() {
|
|
|
|
|
*/
|
|
|
|
|
int VideoDev_VFW::Grab(VideoFrameRaw *vf) {
|
|
|
|
|
|
|
|
|
|
// Do not know exactly why, but needed to translate/dispatch window message
|
|
|
|
|
HandleMessages();
|
|
|
|
|
|
|
|
|
|
if (inframe == NULL) return VDEV_STATUS_ERROR;
|
|
|
|
|
|
|
|
|
|
if (GetFrameBufferSize() > 0) {
|
|
|
|
|
|