[Sink] accept flex tensor
authorJaeyun <jy1210.jung@samsung.com>
Fri, 23 Apr 2021 10:58:17 +0000 (19:58 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Wed, 28 Apr 2021 05:17:37 +0000 (14:17 +0900)
add pad template to handle flexible tensor stream.

Signed-off-by: Jaeyun <jy1210.jung@samsung.com>
gst/nnstreamer/tensor_sink/tensor_sink.c

index 0c7dfd0..8e5014f 100644 (file)
@@ -245,8 +245,8 @@ gst_tensor_sink_class_init (GstTensorSinkClass * klass)
       "Sink element to handle tensor stream", "Samsung Electronics Co., Ltd.");
 
   /** pad template */
-  pad_caps = gst_caps_from_string (GST_TENSOR_CAP_DEFAULT "; "
-      GST_TENSORS_CAP_DEFAULT);
+  pad_caps = gst_caps_from_string (GST_TENSOR_CAP_DEFAULT ";"
+      GST_TENSORS_CAP_DEFAULT ";" GST_TENSORS_FLEX_CAP_DEFAULT);
   pad_template = gst_pad_template_new ("sink", GST_PAD_SINK, GST_PAD_ALWAYS,
       pad_caps);
   gst_element_class_add_pad_template (element_class, pad_template);