If an extension (e.g., nnstreamer-tensorflow) is missing,
the error message must be explicit and visible even without
GST_DEBUG envvars; most applications developers won't know it.
However, we cannot alarm them at the stage of set-properties.
Thus, delay alarming until it becomes "fatal".
Fixes #1206
Helps https://github.com/nnsuite/nnstreamer-example/issues/21
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
GST_ELEMENT_ERROR (self, CORE, NOT_IMPLEMENTED, (NULL), ("unknown format"));
return GST_FLOW_NOT_NEGOTIATED;
unknown_framework:
+ /**
+ * This is fatal; if framework is not configured until this stage,
+ * it means that an extension is missing or not configured.
+ * We need readable messages for non-developers
+ */
+ g_error
+ ("\nA nnstreamer extension is not installed or framework property of tensor_filter is incorrect: [%s] is not found.\n\n",
+ prop->fwname);
GST_ELEMENT_ERROR (self, CORE, NOT_IMPLEMENTED, (NULL),
("framework not configured"));
return GST_FLOW_ERROR;