vapostproc: Ignore direction at orientation swapping.

It doesn't matter the direction of the negotiation.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1261>
This commit is contained in:
Víctor Manuel Jáquez Leal 2021-10-27 11:53:28 +02:00 committed by GStreamer Marge Bot
parent cbca0bb06e
commit bc6a7a63f0

View file

@ -1175,13 +1175,8 @@ gst_va_vpp_fixate_size (GstVaVpp * self, GstPadDirection direction,
case GST_VIDEO_ORIENTATION_90L: case GST_VIDEO_ORIENTATION_90L:
case GST_VIDEO_ORIENTATION_UL_LR: case GST_VIDEO_ORIENTATION_UL_LR:
case GST_VIDEO_ORIENTATION_UR_LL: case GST_VIDEO_ORIENTATION_UR_LL:
if (direction == GST_PAD_SINK) { SWAP (from_w, from_h);
SWAP (from_w, from_h); SWAP (from_par_n, from_par_d);
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 */
}
break; break;
default: default:
break; break;