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

Loading…
Cancel
Save