summaryrefslogtreecommitdiff
path: root/voctogui/lib/videodisplay.py
diff options
context:
space:
mode:
authorMaZderMind <git@mazdermind.de>2016-09-01 14:27:04 +0200
committerMaZderMind <git@mazdermind.de>2016-09-01 14:30:25 +0200
commit465900988aafd32e4a3df9cea0397122f6b1b31f (patch)
treefcd39b80cd7a6372495aac6537bc0685385ef01d /voctogui/lib/videodisplay.py
parent59e7cedd2d7f70869e1db08166166ef34dd8df1c (diff)
Allow setting Voctogui-Host per Commandline, fixes #88
Diffstat (limited to 'voctogui/lib/videodisplay.py')
-rw-r--r--voctogui/lib/videodisplay.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/voctogui/lib/videodisplay.py b/voctogui/lib/videodisplay.py
index c5a639b..744e1aa 100644
--- a/voctogui/lib/videodisplay.py
+++ b/voctogui/lib/videodisplay.py
@@ -1,6 +1,7 @@
import logging
from gi.repository import Gst
+from lib.args import Args
from lib.config import Config
from lib.clock import Clock
@@ -105,7 +106,7 @@ class VideoDisplay(object):
acaps=Config.get('mix', 'audiocaps'),
vcaps=Config.get('mix', 'videocaps'),
previewcaps=Config.get('previews', 'videocaps'),
- host=Config.get('server', 'host'),
+ host=Args.host if Args.host else Config.get('server', 'host'),
port=port,
)