From 18af1394a8b732d94b48b8f13e78cfcae3e45a6e Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Fri, 15 May 2015 10:40:17 +0200 Subject: Move Class-Level variables to the Instances I should really learn python… MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- voctocore/lib/pipeline.py | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'voctocore/lib/pipeline.py') 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 -- cgit v1.2.3