From 5c05d1b7f99f2a30d7de13753e4ae08f23492a7a Mon Sep 17 00:00:00 2001 From: Stefan Jahn Date: Mon, 20 Feb 2023 22:39:19 +0100 Subject: [PATCH] Removed video source / format dialog calls in the Open() function --- videodev-vfw.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/videodev-vfw.cc b/videodev-vfw.cc index b0f12ab..ef2dcdc 100644 --- a/videodev-vfw.cc +++ b/videodev-vfw.cc @@ -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) {