It doesn't matter the direction of the negotiation.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1261>
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;