SyncParallelPipeline: cleanup source/sink processors

This commit is contained in:
Aleix Conchillo Flaqué
2025-01-30 13:13:02 -08:00
parent 241f241ed9
commit a145005498

View File

@@ -105,7 +105,9 @@ class SyncParallelPipeline(BasePipeline):
async def cleanup(self):
await super().cleanup()
await asyncio.gather(*[s["processor"].cleanup() for s in self._sources])
await asyncio.gather(*[p.cleanup() for p in self._pipelines])
await asyncio.gather(*[s["processor"].cleanup() for s in self._sinks])
async def process_frame(self, frame: Frame, direction: FrameDirection):
await super().process_frame(frame, direction)