Removed video source / format dialog calls in the Open() function

master
Stefan Jahn 3 years ago
parent 94155b3ba4
commit 5c05d1b7f9

@ -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) {

Loading…
Cancel
Save