summaryrefslogtreecommitdiff
path: root/voctocore/lib/pipeline.py
diff options
context:
space:
mode:
authorMaZderMind <github@mazdermind.de>2015-05-15 10:40:17 +0200
committerMaZderMind <github@mazdermind.de>2015-05-15 10:40:17 +0200
commit18af1394a8b732d94b48b8f13e78cfcae3e45a6e (patch)
tree277a4ed47ce1823742da57a9999b75dd1a265f22 /voctocore/lib/pipeline.py
parent389f87470bc988a2e4c26b4ce6e23a313aafbaf0 (diff)
Move Class-Level variables to the Instances
I should really learn python…
Diffstat (limited to 'voctocore/lib/pipeline.py')
-rw-r--r--voctocore/lib/pipeline.py14
1 files changed, 5 insertions, 9 deletions
diff --git a/voctocore/lib/pipeline.py b/voctocore/lib/pipeline.py
index 5a9ce3e..9addca0 100644
--- a/voctocore/lib/pipeline.py
+++ b/voctocore/lib/pipeline.py
@@ -12,17 +12,9 @@ from lib.audiomix import AudioMix
class Pipeline(object):
"""mixing, streaming and encoding pipeline constuction and control"""
- log = logging.getLogger('Pipeline')
-
- sources = []
- mirrors = []
- previews = []
-
- vmix = None
- amix = None
- mixout = None
def __init__(self):
+ self.log = logging.getLogger('Pipeline')
self.log.info('Video-Caps configured to: %s', Config.get('mix', 'videocaps'))
self.log.info('Audio-Caps configured to: %s', Config.get('mix', 'audiocaps'))
@@ -30,6 +22,10 @@ class Pipeline(object):
if len(names) < 1:
raise RuntimeException("At least one AVSource must be configured!")
+ self.sources = []
+ self.mirrors = []
+ self.previews = []
+
self.log.info('Creating %u Creating AVSources: %s', len(names), names)
for idx, name in enumerate(names):
port = 10000 + idx