From 679166f2e78fcfb0c496e2ae986b2fd7ec84bcd7 Mon Sep 17 00:00:00 2001 From: MyungJoo Ham Date: Wed, 21 Nov 2018 14:46:01 +0900 Subject: [PATCH] [Decoder] Fix cap negotiation bug Decoder::Main had been saying that it cannot accept other/tensors. Signed-off-by: MyungJoo Ham --- gst/tensor_decoder/tensordec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gst/tensor_decoder/tensordec.c b/gst/tensor_decoder/tensordec.c index a2c7f4f..aeb5ee7 100644 --- a/gst/tensor_decoder/tensordec.c +++ b/gst/tensor_decoder/tensordec.c @@ -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; -- 2.7.4