Skip to content

Commit 4386060

Browse files
BNieuwenhuizenfhvwy
authored andcommitted
kmsgrab: Do not require the modifier to stay constant.
As we get a new set of objects each frame anyway, we do not gain anything by keeping the modifier constant. This helps with capturing when switching your setup a bit, e.g. from ingame to desktop or from X11 to wayland. Signed-off-by: Mark Thompson <[email protected]>
1 parent 03f4b20 commit 4386060

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

libavdevice/kmsgrab.c

-7
Original file line numberDiff line numberDiff line change
@@ -176,13 +176,6 @@ static int kmsgrab_get_fb2(AVFormatContext *avctx,
176176
err = AVERROR(EIO);
177177
goto fail;
178178
}
179-
if (fb->modifier != ctx->drm_format_modifier) {
180-
av_log(avctx, AV_LOG_ERROR, "Plane %"PRIu32" framebuffer "
181-
"format modifier changed: now %"PRIx64".\n",
182-
ctx->plane_id, fb->modifier);
183-
err = AVERROR(EIO);
184-
goto fail;
185-
}
186179
if (fb->width != ctx->width || fb->height != ctx->height) {
187180
av_log(avctx, AV_LOG_ERROR, "Plane %"PRIu32" framebuffer "
188181
"dimensions changed: now %"PRIu32"x%"PRIu32".\n",

0 commit comments

Comments
 (0)