vapostproc: Ignore direction at orientation swapping.
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Wed, 27 Oct 2021 09:53:28 +0000 (11:53 +0200)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 27 Oct 2021 18:01:50 +0000 (18:01 +0000)
It doesn't matter the direction of the negotiation.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1261>

subprojects/gst-plugins-bad/sys/va/gstvavpp.c

index 2c3131a..4add0dd 100644 (file)
@@ -1175,13 +1175,8 @@ gst_va_vpp_fixate_size (GstVaVpp * self, GstPadDirection direction,
       case GST_VIDEO_ORIENTATION_90L:
       case GST_VIDEO_ORIENTATION_UL_LR:
       case GST_VIDEO_ORIENTATION_UR_LL:
-        if (direction == GST_PAD_SINK) {
-          SWAP (from_w, from_h);
-          SWAP (from_par_n, from_par_d);
-        } else if (direction == GST_PAD_SRC) {
-          SWAP (w, h);
-          /* there's no need to swap 1/1 par */
-        }
+        SWAP (from_w, from_h);
+        SWAP (from_par_n, from_par_d);
         break;
       default:
         break;