summaryrefslogtreecommitdiff
path: root/gst/vaapi/gstvaapipostprocutil.c
diff options
context:
space:
mode:
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2019-07-15 21:27:20 +0200
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2019-08-19 16:48:50 +0000
commitbcb29e839938b3d3898ba475536e9d33ff8f0a39 (patch)
tree0c8dc16a129855e6fb28160a279d1eb9433f2100 /gst/vaapi/gstvaapipostprocutil.c
parentb8a333e0c3cbe804311ac25d8054cf0d5f5ae1f6 (diff)
vaapipostproc: handle image-orientation upstream event
Now that vaapipostproc can possible handle video-direction, it should also handle the image-orientation event from upstream if video-direction property is set to auto.
Diffstat (limited to 'gst/vaapi/gstvaapipostprocutil.c')
-rw-r--r--gst/vaapi/gstvaapipostprocutil.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gst/vaapi/gstvaapipostprocutil.c b/gst/vaapi/gstvaapipostprocutil.c
index 81f89c43..2c576b13 100644
--- a/gst/vaapi/gstvaapipostprocutil.c
+++ b/gst/vaapi/gstvaapipostprocutil.c
@@ -23,6 +23,8 @@
* Boston, MA 02110-1301 USA
*/
+#include <gst/vaapi/gstvaapifilter.h>
+
#include "gstvaapipostprocutil.h"
#include "gstvaapipluginutil.h"
@@ -178,7 +180,7 @@ _fixate_frame_size (GstVaapiPostproc * postproc, GstVideoInfo * vinfo,
from_h = GST_VIDEO_INFO_HEIGHT (vinfo);
/* compensate for rotation if needed */
- switch (postproc->video_direction) {
+ switch (gst_vaapi_filter_get_video_direction (postproc->filter)) {
case GST_VIDEO_ORIENTATION_90R:
case GST_VIDEO_ORIENTATION_90L:
case GST_VIDEO_ORIENTATION_UL_LR: