kmssink: Scale up to the screen dimension
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Thu, 8 Sep 2016 15:23:57 +0000 (11:23 -0400)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Thu, 8 Sep 2016 17:23:35 +0000 (13:23 -0400)
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

sys/kms/gstkmssink.c

index 8057429fa8f0c7890073b56a9be3897f43f3ea5b..8508b0d1045bb5013beff7d9ba11daa7215e1fa5 100644 (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;