kmssink: Scale up to the screen dimension

In most display sink, the logic is to use as much as possible
of the given window. In this case, the window is the screen,
hence it's logical to scale up.

https://bugzilla.gnome.org/show_bug.cgi?id=767422
This commit is contained in:
Nicolas Dufresne 2016-09-08 11:23:57 -04:00
parent 37c670e235
commit 753c423784

View file

@ -1102,7 +1102,7 @@ gst_kms_sink_show_frame (GstVideoSink * vsink, GstBuffer * buf)
dst.w = self->hdisplay;
dst.h = self->vdisplay;
gst_video_sink_center_rect (src, dst, &result, FALSE);
gst_video_sink_center_rect (src, dst, &result, TRUE);
if (crop) {
src.w = crop->width;