[Decoder] Fix cap negotiation bug
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Wed, 21 Nov 2018 05:46:01 +0000 (14:46 +0900)
committerjaeyun-jung <39614140+jaeyun-jung@users.noreply.github.com>
Thu, 22 Nov 2018 15:32:31 +0000 (00:32 +0900)
Decoder::Main had been saying that it cannot accept other/tensors.

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
gst/tensor_decoder/tensordec.c

index a2c7f4f..aeb5ee7 100644 (file)
@@ -638,7 +638,8 @@ gst_tensordec_transform_caps (GstBaseTransform * trans,
     result = gst_tensordec_media_caps_from_structure (self, s);
   } else if (direction == GST_PAD_SRC) {
     /** caps = srcpad (media) return = sinkpad (other/tensor) */
-    result = gst_caps_from_string (GST_TENSOR_CAP_DEFAULT);
+    /** @todo We may do more specific actions here */
+    result = gst_caps_from_string (CAPS_STRING);
   } else {
     g_assert (0);
     return NULL;