mirror of
https://repo.dec05eba.com/gpu-screen-recorder
synced 2026-05-05 14:30:43 +09:00
kms vaapi: fix capture bug (incorrect video size) caused by shadowed variable...
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user