summaryrefslogtreecommitdiff
path: root/voctocore/lib
diff options
context:
space:
mode:
authorMaZderMind <git@mazdermind.de>2015-08-29 18:06:38 +0200
committerMaZderMind <git@mazdermind.de>2015-08-29 18:06:38 +0200
commitef755f38c8e4bb7b7b92018a901c7c18e7b47b18 (patch)
tree845ff50001d3eea4205f89dfaa697e55b6580fbe /voctocore/lib
parentd1a70bf2bb1fb08d6a4859cf98595d914a14b0c0 (diff)
enforce pixel-aspect-ratio=1/1 inbetween videoscaler and compositor to fix compatibility with current gstreamer RC 1.5.90
see https://bugzilla.gnome.org/show_bug.cgi?id=752913 and https://bugzilla.gnome.org/show_bug.cgi?id=754291
Diffstat (limited to 'voctocore/lib')
-rw-r--r--voctocore/lib/videomix.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/voctocore/lib/videomix.py b/voctocore/lib/videomix.py
index d50b5a1..9fcea9f 100644
--- a/voctocore/lib/videomix.py
+++ b/voctocore/lib/videomix.py
@@ -161,7 +161,7 @@ class VideoMix(object):
xa = 0
xb = width - targetWidth
- scaleCaps = Gst.Caps.from_string('video/x-raw,width=%u,height=%u' % (targetWidth, targetHeight))
+ scaleCaps = Gst.Caps.from_string('video/x-raw,width=%u,height=%u,pixel-aspect-ratio=1/1' % (targetWidth, targetHeight))
for idx, name in enumerate(self.names):
pad = self.padState[idx]
@@ -274,8 +274,8 @@ class VideoMix(object):
]
self.log.debug('PIP-Position calculated to %u/%u', pippos[0], pippos[1])
- scaleCaps = Gst.Caps.from_string('video/x-raw,width=%u,height=%u' % tuple(pipsize))
noScaleCaps = Gst.Caps.from_string('video/x-raw')
+ scaleCaps = Gst.Caps.from_string('video/x-raw,width=%u,height=%u,pixel-aspect-ratio=1/1' % tuple(pipsize))
for idx, name in enumerate(self.names):
pad = self.padState[idx]