From d643748c9433654c71b2727e8e7a1b17b96d1b69 Mon Sep 17 00:00:00 2001
From: Paul Chitescu <paulc@voip.null.ro>
Date: Tue, 2 Feb 2010 13:33:54 +0200
Subject: [PATCH] qcap: Test the correct variable when deciding how to grab V4L
 frame.

---
 dlls/qcap/v4l.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/qcap/v4l.c b/dlls/qcap/v4l.c
index 85d4d4d1325..91dd8f4adf8 100644
--- a/dlls/qcap/v4l.c
+++ b/dlls/qcap/v4l.c
@@ -563,7 +563,7 @@ static void Resize(const Capture * capBox, LPBYTE output, const BYTE *input)
 
 static void V4l_GetFrame(Capture * capBox, unsigned char ** pInput)
 {
-    if (capBox->pmap)
+    if (capBox->mmap)
     {
         if (xioctl(capBox->fd, VIDIOCSYNC, &capBox->grab_buf[capBox->curframe]) == -1)
             WARN("Syncing ioctl failed: %d\n", errno);
-- 
GitLab