diff options
Diffstat (limited to 'voctocore/lib/videomix.py')
-rw-r--r-- | voctocore/lib/videomix.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/voctocore/lib/videomix.py b/voctocore/lib/videomix.py index 7ff98c2..047f0d4 100644 --- a/voctocore/lib/videomix.py +++ b/voctocore/lib/videomix.py @@ -30,6 +30,8 @@ class VideoMix(object): def __init__(self): self.caps = Config.get('mix', 'videocaps') + self.defcompa = int(Config.get('mix', 'defcompa')) + self.names = Config.getlist('mix', 'sources') self.log.info('Configuring Mixer for %u Sources', len(self.names)) @@ -334,6 +336,16 @@ class VideoMix(object): return self.sourceB def setCompositeMode(self, mode): + + print(str(self.sourceA) + ' Source ID') + print(str(self.defcompa) + 'defcomp') + if self.defcompa != -1: + if self.sourceA != self.defcompa: + self.sourceB = self.sourceA + self.sourceA = self.defcompa + print(str(self.sourceA) + ' A ' + str(self.sourceB) + ' B') + + self.compositeMode = mode self.recalculateMixerState() |