From b9ec27da68ddce2afc94454e92a78fe262812a0e Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Sun, 10 May 2015 16:28:38 +0200 Subject: Implementing a Video-Switching-Server is easy … if you know what your're doing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- voctocore/lib/failvideosrc.py | 34 ---------------------------------- 1 file changed, 34 deletions(-) delete mode 100644 voctocore/lib/failvideosrc.py (limited to 'voctocore/lib/failvideosrc.py') diff --git a/voctocore/lib/failvideosrc.py b/voctocore/lib/failvideosrc.py deleted file mode 100644 index 500603a..0000000 --- a/voctocore/lib/failvideosrc.py +++ /dev/null @@ -1,34 +0,0 @@ -#!/usr/bin/python3 -import time, logging -from gi.repository import GLib, Gst - -from lib.config import Config - -class FailVideoSrc(Gst.Bin): - log = logging.getLogger('FailVideoSrc') - colors = [ - 0xffff0000, # red - 0xff00ff00, # green - 0xff0000ff, # blue - 0xffffff00, # yellow - 0xff00ffff, # cyan - 0xffff00ff, # magenta - 0xffffffff, # white - ] - - def __init__(self, idx, name): - super().__init__() - - # Create elements - self.failsrc = Gst.ElementFactory.make('videotestsrc', None) - - # Add elements to Bin - self.add(self.failsrc) - - # Set properties - self.failsrc.set_property('foreground-color', self.colors[idx % len(self.colors)]) - - # Add Ghost Pads - self.add_pad( - Gst.GhostPad.new('src', self.failsrc.get_static_pad('src')) - ) -- cgit v1.2.3