summaryrefslogtreecommitdiff
path: root/src/py
diff options
context:
space:
mode:
Diffstat (limited to 'src/py')
-rw-r--r--src/py/cam/cam_kms.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/py/cam/cam_kms.py b/src/py/cam/cam_kms.py
index f1844717..d8ff0284 100644
--- a/src/py/cam/cam_kms.py
+++ b/src/py/cam/cam_kms.py
@@ -75,12 +75,13 @@ class KMSRenderer:
buffers = drmreq['camreq'].buffers
+ req = pykms.AtomicReq(self.card)
+
for stream, fb in buffers.items():
drmfb = self.cam_2_drm.get(fb, None)
-
- req = pykms.AtomicReq(self.card)
self.add_plane(req, stream, drmfb)
- req.commit()
+
+ req.commit()
def handle_page_flip(self, frame, time):
old = self.current