diff options
author | MaZderMind <github@mazdermind.de> | 2015-05-10 16:28:38 +0200 |
---|---|---|
committer | MaZderMind <github@mazdermind.de> | 2015-05-10 16:28:38 +0200 |
commit | b9ec27da68ddce2afc94454e92a78fe262812a0e (patch) | |
tree | eb917f731b6d199c6a76b1cf541d6f6af29ca6fd /voctocore/lib/distributor.py | |
parent | f8a0b46028b9c902da7ce67590f9ce952ea44544 (diff) |
Implementing a Video-Switching-Server is easy … if you know what your're doing
Diffstat (limited to 'voctocore/lib/distributor.py')
-rw-r--r-- | voctocore/lib/distributor.py | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/voctocore/lib/distributor.py b/voctocore/lib/distributor.py deleted file mode 100644 index 8282839..0000000 --- a/voctocore/lib/distributor.py +++ /dev/null @@ -1,33 +0,0 @@ -#!/usr/bin/python3 -import time, logging -from gi.repository import GLib, Gst - -from lib.config import Config - -class TimesTwoDistributor(Gst.Bin): - log = logging.getLogger('TimesTwoDistributor') - - def __init__(self): - super().__init__() - - self.tee = Gst.ElementFactory.make('tee', None) - self.queue_a = Gst.ElementFactory.make('queue', 'queue-a') - self.queue_b = Gst.ElementFactory.make('queue', 'queue-b') - - self.add(self.tee) - self.add(self.queue_a) - self.add(self.queue_b) - - self.tee.link(self.queue_a) - self.tee.link(self.queue_b) - - # Add Ghost Pads - self.add_pad( - Gst.GhostPad.new('sink', self.tee.get_static_pad('sink')) - ) - self.add_pad( - Gst.GhostPad.new('src_a', self.queue_a.get_static_pad('src')) - ) - self.add_pad( - Gst.GhostPad.new('src_b', self.queue_b.get_static_pad('src')) - ) |