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

This commit is contained in:
Yann Leboulanger 2011-04-06 21:56:42 +02:00
parent 666334a4d3
commit ece2590892
1 changed files with 4 additions and 2 deletions

View File

@ -386,10 +386,12 @@ class JingleVideo(JingleRTPContent):
#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: