From d4682fa13602fc2817711d15e48600eca21ce105 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Thu, 18 Feb 2021 05:58:25 +0100 Subject: [PATCH] va: filter: check if filter is open on set_orientation() Because the method requires pipeline_caps is filled. Part-of: --- sys/va/gstvafilter.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/va/gstvafilter.c b/sys/va/gstvafilter.c index 6b666f6391..48b32e73ae 100644 --- a/sys/va/gstvafilter.c +++ b/sys/va/gstvafilter.c @@ -780,6 +780,9 @@ gst_va_filter_set_orientation (GstVaFilter * self, guint32 mirror = VA_MIRROR_NONE, rotation = VA_ROTATION_NONE; guint32 mirror_flags, rotation_flags; + if (!gst_va_filter_is_open (self)) + return FALSE; + if (!_from_video_orientation_method (orientation, &mirror, &rotation)) return FALSE;