Skip to content

Commit b91a750

Browse files
committed
Accept extra arguments to outputframe
The `picamera2` package now gives extra arguments to `PicameraStreamOutput.outputframe`. I've added two additional optional arguments to fix this, in a backwards-compatible way.
1 parent 272af96 commit b91a750

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/labthings_picamera2/thing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def __init__(self, stream: MJPEGStream, portal: BlockingPortal):
9292
self.stream = stream
9393
self.portal = portal
9494

95-
def outputframe(self, frame, _keyframe=True, _timestamp=None):
95+
def outputframe(self, frame, _keyframe=True, _timestamp=None, _packet=None, _audio=False):
9696
"""Add a frame to the stream's ringbuffer"""
9797
self.stream.add_frame(frame, self.portal)
9898

0 commit comments

Comments
 (0)