Revert "kmssink: Fix fallback path for driver not able to scale scenario"
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Fri, 27 Aug 2021 19:41:32 +0000 (15:41 -0400)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 27 Aug 2021 19:54:52 +0000 (19:54 +0000)
This reverts commit d2a7b763bef3ca51f0c84cdac52eeed85b0db8fb.

After this change, non-scaled rendered were not centred as expected.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2496>

sys/kms/gstkmssink.c

index 10c5619..5c68d8c 100644 (file)
@@ -1654,10 +1654,8 @@ retry_set_plane:
 
   /* to make sure it can be show when driver don't support scale */
   if (!self->can_scale) {
-    result.w = src.w;
-    result.h = src.h;
-    result.x = src.x;
-    result.y = src.y;
+    src.w = result.w;
+    src.h = result.h;
   }
 
   GST_TRACE_OBJECT (self,