Skip to content

Commit 9a799b4

Browse files
committed
Merge remote-tracking branch 'origin/drm' into drm
2 parents c6400db + 68c7967 commit 9a799b4

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)