From 1ff92a0fa1635a6ba3981c165cb400d40b5683cf Mon Sep 17 00:00:00 2001 From: Yongjoo Ahn Date: Thu, 24 Feb 2022 15:53:50 +0900 Subject: [PATCH] [tensor_filter] Modify the order of caps_intersect_full - The pipeline reported in #3636 has nego fail issue because the caps is fixated with flexible right after tensor_filter. - To resolve this, change the order of `gst_caps_intersect_full` in transform_caps. This makes static format to be chosen. - This resolves #3636 Signed-off-by: Yongjoo Ahn --- gst/nnstreamer/tensor_filter/tensor_filter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst/nnstreamer/tensor_filter/tensor_filter.c b/gst/nnstreamer/tensor_filter/tensor_filter.c index c9aeb36..570fe8d 100644 --- a/gst/nnstreamer/tensor_filter/tensor_filter.c +++ b/gst/nnstreamer/tensor_filter/tensor_filter.c @@ -1001,7 +1001,7 @@ gst_tensor_filter_transform_caps (GstBaseTransform * trans, &in_config.info, &out_info); } - /* If output combibation option is given, reconfigure tensor info */ + /* If output combination option is given, reconfigure tensor info */ if (configured) configured = gst_tensor_filter_common_get_combined_out_info (priv, &in_config.info, &out_info, &out_config.info); @@ -1034,7 +1034,7 @@ gst_tensor_filter_transform_caps (GstBaseTransform * trans, */ intersection = - gst_caps_intersect_full (filter, result, GST_CAPS_INTERSECT_FIRST); + gst_caps_intersect_full (result, filter, GST_CAPS_INTERSECT_FIRST); gst_caps_unref (result); result = intersection; -- 2.7.4