Skip to content

Commit 68c7967

Browse files
committed
Update fb to MAP_Shared
1 parent f6006c1 commit 68c7967

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

libsrc/grabber/framebuffer/FramebufferFrameGrabber.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,9 @@ int FramebufferFrameGrabber::grabFrame(Image<ColorRgb> & image)
7676
}
7777

7878
/* map the device to memory */
79-
auto * fbp = static_cast<uint8_t*>(mmap(nullptr, _fixInfo.smem_len, PROT_READ, MAP_PRIVATE | MAP_NORESERVE, _deviceFd, 0));
79+
auto * fbp = static_cast<uint8_t*>(mmap(nullptr, _fixInfo.smem_len, PROT_READ, MAP_SHARED, _deviceFd, 0));
8080
if (fbp == MAP_FAILED)
8181
{
82-
8382
QString errorReason = QString ("Error mapping %1, [%2] %3").arg(getDeviceName()).arg(errno).arg(std::strerror(errno));
8483
this->setInError ( errorReason );
8584
closeDevice();

0 commit comments

Comments
 (0)