diff options
author | dec05eba <dec05eba@protonmail.com> | 2023-08-13 01:55:56 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2023-08-13 01:55:56 +0200 |
commit | a253be38b789385e2a04bd1deff5623980ed67e2 (patch) | |
tree | 3c49250645d34648a204ba0dd7c2c0bafe4ce1ff /src/utils.c | |
parent | 26b54ff3e4507c51ef113c1a028305de0a520981 (diff) |
kms vaapi: fix capture bug (incorrect video size) caused by shadowed variable...
Diffstat (limited to 'src/utils.c')
-rw-r--r-- | src/utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils.c b/src/utils.c index 16e928a..db0bd6f 100644 --- a/src/utils.c +++ b/src/utils.c @@ -275,8 +275,8 @@ bool gsr_get_valid_card_path(char *output) { if(!planes) goto next; - for(uint32_t i = 0; i < planes->count_planes; ++i) { - drmModePlanePtr plane = drmModeGetPlane(fd, planes->planes[i]); + for(uint32_t j = 0; j < planes->count_planes; ++j) { + drmModePlanePtr plane = drmModeGetPlane(fd, planes->planes[j]); if(!plane) continue; |