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 <myungjoo.ham@samsung.com>
self = GST_TENSOR_FILTER_CAST (trans);
gst_tensor_filter_open_fw (self);
+
+ if (self->prop.fw_opened == FALSE)
+ return FALSE;
return TRUE;
}