From d9d50d89435380292efd798ee1f4e941d374fc36 Mon Sep 17 00:00:00 2001 From: David Rosca Date: Thu, 2 Sep 2021 12:33:54 +0200 Subject: [PATCH] kmsgrab: Fix multi-plane import --- sunshine/platform/linux/kmsgrab.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sunshine/platform/linux/kmsgrab.cpp b/sunshine/platform/linux/kmsgrab.cpp index 1d1e1d1a..d97e8e2a 100644 --- a/sunshine/platform/linux/kmsgrab.cpp +++ b/sunshine/platform/linux/kmsgrab.cpp @@ -571,6 +571,7 @@ public: sd->offsets[x] = fb->offsets[y]; sd->pitches[x] = fb->pitches[y]; sd->plane_indices[x] = y; + ++x; } sd->width = fb->width; @@ -585,8 +586,6 @@ public: return capture_e::reinit; } - ++x; - return capture_e::ok; }