summaryrefslogtreecommitdiff
path: root/voctocore/lib/shmsrc.py
diff options
context:
space:
mode:
authorMaZderMind <peter@mazdermind.de>2014-09-14 15:49:25 +0200
committerMaZderMind <peter@mazdermind.de>2014-09-14 15:49:25 +0200
commit66471a9cb0a0461672ea1cfcea638a8c021542f5 (patch)
tree523e8c0d344c253a40d5bed03c4f1f742b18ced0 /voctocore/lib/shmsrc.py
parent638f52635b788a4c43b232cc6d59be11ec6dab52 (diff)
use an external failsrc for the failover shmsrc
Diffstat (limited to 'voctocore/lib/shmsrc.py')
-rw-r--r--voctocore/lib/shmsrc.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/voctocore/lib/shmsrc.py b/voctocore/lib/shmsrc.py
index 64e3555..1158887 100644
--- a/voctocore/lib/shmsrc.py
+++ b/voctocore/lib/shmsrc.py
@@ -10,7 +10,7 @@ class FailsafeShmSrc(Gst.Bin):
last_restart_retry = 0
is_in_failstate = True
- def __init__(self, socket):
+ def __init__(self, socket, failsrc):
super().__init__()
caps = Gst.Caps.from_string(Config.get('sources', 'videocaps'))
@@ -21,7 +21,7 @@ class FailsafeShmSrc(Gst.Bin):
self.capsfilter = Gst.ElementFactory.make('capsfilter', None)
self.failsrcsyncer = Gst.ElementFactory.make('identity', None)
self.switch = Gst.ElementFactory.make('input-selector', None)
- self.failsrc = Gst.ElementFactory.make('videotestsrc', None)
+ self.failsrc = failsrc;
if not self.shmsrc or not self.capsfilter or not self.failsrcsyncer or not self.switch or not self.failsrc:
self.log.error('could not create elements')