[tensor_filter] Modify the order of caps_intersect_full
authorYongjoo Ahn <yongjoo1.ahn@samsung.com>
Thu, 24 Feb 2022 06:53:50 +0000 (15:53 +0900)
committerjaeyun-jung <39614140+jaeyun-jung@users.noreply.github.com>
Wed, 2 Mar 2022 08:54:36 +0000 (17:54 +0900)
- 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 <yongjoo1.ahn@samsung.com>
gst/nnstreamer/tensor_filter/tensor_filter.c

index c9aeb36..570fe8d 100644 (file)
@@ -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;