fix audio compression switching

This commit is contained in:
Jakob Ketterl 2021-09-28 17:46:18 +02:00
parent d869c5ee2d
commit c3917c61d3

View File

@ -115,7 +115,7 @@ class Chain(Module):
removedWorker.stop()
if index == 0:
if self.reader is not None:
if self.reader is not None and len(self.workers):
self.workers[0].setReader(self.reader)
elif index == len(self.workers):
if self.writer is not None: