glvideoflip: incorporate the aspect ratio into the scale_x calculations
authorMatthew Waters <matthew@centricular.com>
Mon, 25 Jan 2016 08:11:38 +0000 (19:11 +1100)
committerMatthew Waters <matthew@centricular.com>
Wed, 27 Jan 2016 05:13:28 +0000 (16:13 +1100)
commit3cf98f7e5ec4fc59568d29308b7e870835deda66
tree362bd1c4980c3d628108baa7e73dcac76cd12ef1
parent6f80d5c59ae6171419df1c704666da2d1148474a
glvideoflip: incorporate the aspect ratio into the scale_x calculations

1. Otherwise rotating the video will clip and show black bars due to
   gltransformation's implementation.
2. The other option of make gltransformation aspect-agnostic produces
   incorrect output with perspective transformations.
ext/gl/gstglvideoflip.c
ext/gl/gstglvideoflip.h