kms vaapi: fix capture bug (incorrect video size) caused by shadowed variable...

This commit is contained in:
dec05eba
2023-08-13 01:55:56 +02:00
parent 26b54ff3e4
commit a253be38b7
4 changed files with 9 additions and 19 deletions

View File

@@ -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;