kmsgrab: Fix multi-plane import
This commit is contained in:
parent
7c753e2289
commit
d9d50d8943
1 changed files with 1 additions and 2 deletions
|
|
@ -571,6 +571,7 @@ public:
|
||||||
sd->offsets[x] = fb->offsets[y];
|
sd->offsets[x] = fb->offsets[y];
|
||||||
sd->pitches[x] = fb->pitches[y];
|
sd->pitches[x] = fb->pitches[y];
|
||||||
sd->plane_indices[x] = y;
|
sd->plane_indices[x] = y;
|
||||||
|
++x;
|
||||||
}
|
}
|
||||||
|
|
||||||
sd->width = fb->width;
|
sd->width = fb->width;
|
||||||
|
|
@ -585,8 +586,6 @@ public:
|
||||||
return capture_e::reinit;
|
return capture_e::reinit;
|
||||||
}
|
}
|
||||||
|
|
||||||
++x;
|
|
||||||
|
|
||||||
return capture_e::ok;
|
return capture_e::ok;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue