summaryrefslogtreecommitdiff
path: root/src/py/cam/cam_kms.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/py/cam/cam_kms.py')
-rw-r--r--src/py/cam/cam_kms.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/py/cam/cam_kms.py b/src/py/cam/cam_kms.py
index 49b00211..38fc382d 100644
--- a/src/py/cam/cam_kms.py
+++ b/src/py/cam/cam_kms.py
@@ -131,10 +131,10 @@ class KMSRenderer:
fds = []
strides = []
offsets = []
- for i in range(fb.num_planes):
- fds.append(fb.fd(i))
+ for plane in fb.planes:
+ fds.append(plane.fd)
strides.append(cfg.stride)
- offsets.append(fb.offset(i))
+ offsets.append(plane.offset)
drmfb = pykms.DmabufFramebuffer(self.card, w, h, fmt,
fds, strides, offsets)