From: MyungJoo Ham Date: Mon, 25 Feb 2019 02:21:02 +0000 (+0900) Subject: [Filter] Check if open is successful. X-Git-Tag: v0.1.1~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=31c7c9051c7c0f927bd723842310079d542c68d2;p=platform%2Fupstream%2Fnnstreamer.git [Filter] Check if open is successful. Check if open() is successful at the start(). Note that other usage of gst_tensor_filter_open_fw() if called by gst_tensor_filter_call(), whose success is checked by "ret" value if required; there are cases where a "fail" is an option. Note that by checking it at start callback, we can ensure that it's successfully opened for every pipeline start. Fixes #1160 Signed-off-by: MyungJoo Ham --- diff --git a/gst/nnstreamer/tensor_filter/tensor_filter.c b/gst/nnstreamer/tensor_filter/tensor_filter.c index 15a070f..7a3cf85 100644 --- a/gst/nnstreamer/tensor_filter/tensor_filter.c +++ b/gst/nnstreamer/tensor_filter/tensor_filter.c @@ -1354,6 +1354,9 @@ gst_tensor_filter_start (GstBaseTransform * trans) self = GST_TENSOR_FILTER_CAST (trans); gst_tensor_filter_open_fw (self); + + if (self->prop.fw_opened == FALSE) + return FALSE; return TRUE; }