py: cam_kms: Fix multistream display
Instead of doing an atomic commit for each stream, do a single commit for the two planes. This fixes the issue that only the first plane was actually shown. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
parent
a4964c5df1
commit
b7c78879cc
1 changed files with 4 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue