waylandsink: call gst_video_sink_center_rect with a destination rectangle that starts...
authorGeorge Kiagiadakis <george.kiagiadakis@collabora.com>
Wed, 18 Nov 2015 11:56:06 +0000 (12:56 +0100)
committerGeorge Kiagiadakis <george.kiagiadakis@collabora.com>
Wed, 18 Nov 2015 12:10:45 +0000 (13:10 +0100)
commitc51fe83d4228262f297382f49676c76cd2f8147e
tree4772d0a3b6b1c4976c2b830270b0fef003f52ec5
parentfb2d3abca89b56808893a541f546d19a053b390a
waylandsink: call gst_video_sink_center_rect with a destination rectangle that starts from (0,0)

The intention of this code is to find the center rectangle relative
to (0,0), since subsurface coordinates are relative to the parent
surface.

The old code used to work but was wrong and broken by
http://cgit.freedesktop.org/gstreamer/gst-plugins-base/commit/gst-libs/gst/video/gstvideosink.c?id=ff57f6913456ec1991e55517cf1f239e80eeddef
ext/wayland/wlwindow.c