From: | "Samuli Suominen (ssuominen)" <ssuominen@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in media-libs/opencv/files: opencv-2.1.0-mmap.patch |
Date: | Tue, 27 Jul 2010 19:24:12 |
Message-Id: | 20100727192409.66B402CE14@corvid.gentoo.org |
1 | ssuominen 10/07/27 19:24:09 |
2 | |
3 | Added: opencv-2.1.0-mmap.patch |
4 | Log: |
5 | Fix bug in v4l code wrt #313649, Comment #14 by Uwe Sauter. |
6 | (Portage version: 2.2_rc67/cvs/Linux x86_64) |
7 | |
8 | Revision Changes Path |
9 | 1.1 media-libs/opencv/files/opencv-2.1.0-mmap.patch |
10 | |
11 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/opencv/files/opencv-2.1.0-mmap.patch?rev=1.1&view=markup |
12 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/opencv/files/opencv-2.1.0-mmap.patch?rev=1.1&content-type=text/plain |
13 | |
14 | Index: opencv-2.1.0-mmap.patch |
15 | =================================================================== |
16 | http://code.ros.org/trac/opencv/ticket/141 |
17 | http://bugs.gentoo.org/313649 |
18 | |
19 | --- src/highgui/cvcap_libv4l.cpp |
20 | +++ src/highgui/cvcap_libv4l.cpp |
21 | @@ -782,7 +782,7 @@ |
22 | |
23 | capture->buffers[n_buffers].length = buf.length; |
24 | capture->buffers[n_buffers].start = |
25 | - mmap (NULL /* start anywhere */, |
26 | + v4l2_mmap (NULL /* start anywhere */, |
27 | buf.length, |
28 | PROT_READ | PROT_WRITE /* required */, |
29 | MAP_SHARED /* recommended */, |