mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
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:
parent
cbca0bb06e
commit
bc6a7a63f0
1 changed files with 2 additions and 7 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue