summaryrefslogtreecommitdiff
path: root/voctocore/lib/videomix.py
diff options
context:
space:
mode:
Diffstat (limited to 'voctocore/lib/videomix.py')
-rw-r--r--voctocore/lib/videomix.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/voctocore/lib/videomix.py b/voctocore/lib/videomix.py
index 7eb823f..379c788 100644
--- a/voctocore/lib/videomix.py
+++ b/voctocore/lib/videomix.py
@@ -143,6 +143,9 @@ class VideoMix(object):
gutter = int(width / 100)
self.log.debug('Gutter calculated to %u', gutter)
+ targetWidth = int((width - gutter) / 2)
+ targetHeight = int(targetWidth / width * height)
+
try:
y = Config.getint('side-by-side-equal', 'ypos')
self.log.debug('Y-Pos configured to %u', y)
@@ -150,9 +153,6 @@ class VideoMix(object):
y = (height - targetHeight) / 2
self.log.debug('Y-Pos calculated to %u', y)
- targetWidth = int((width - gutter) / 2)
- targetHeight = int(targetWidth / width * height)
-
xa = 0
xb = width - targetWidth