fix writing to birdseye restream buffer (#15052)

This commit is contained in:
Nicolas Mowen 2024-11-18 09:14:49 -07:00 committed by GitHub
parent 26c3f9f914
commit 0b203a3673
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -740,9 +740,10 @@ class Birdseye:
)
self.birdseye_manager = BirdsEyeFrameManager(config, stop_event)
self.config_subscriber = ConfigSubscriber("config/birdseye/")
self.frame_manager = SharedMemoryFrameManager()
if config.birdseye.restream:
self.birdseye_buffer = SharedMemoryFrameManager().create(
self.birdseye_buffer = self.frame_manager.create(
"birdseye",
self.birdseye_manager.yuv_shape[0] * self.birdseye_manager.yuv_shape[1],
)