vaapisink: fix calculation of window size.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Tue, 4 Sep 2012 09:53:18 +0000 (11:53 +0200)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Thu, 6 Sep 2012 11:44:42 +0000 (13:44 +0200)
commitde2a18012dca67d9e581219e94616a63866db821
tree744127312465c770abe724bed1f06caea3141280
parentc8f2358479c89106e5ec25c1fed7c633d1a594d4
vaapisink: fix calculation of window size.

If either dimension is out-of-bounds, then scale window to fit the
display size, even if the output is to be rotated. Use the standard
gst_video_sink_center_rect() function to center and scale the window
wrt. the outer (display) bounds.
gst/vaapi/gstvaapisink.c