Commit ece25908 authored by Yann Leboulanger's avatar Yann Leboulanger

[herfik] keep aspect ratio when resizing video window. Fixes #6852

parent 666334a4
......@@ -386,10 +386,12 @@ def setup_stream(self):
#src_bin.link(caps)
self.sink = self.make_bin_from_config('video_output_device',
'videoscale ! ffmpegcolorspace ! %s', _("video output"))
'videoscale ! ffmpegcolorspace ! %s force-aspect-ratio=True',
_("video output"))
self.pipeline.add(self.sink)
self.src_bin.get_pad('src').link(self.p2psession.get_property('sink-pad'))
self.src_bin.get_pad('src').link(self.p2psession.get_property(
'sink-pad'))
self.p2pstream.connect('src-pad-added', self._on_src_pad_added)
# The following is needed for farsight to process ICE requests:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment