1. fix ret type of filter callback.
2. minor update (warning w/Wmissing-declarations)
Signed-off-by: Jaeyun <jy1210.jung@samsung.com>
const GstTensorMemory * input, GstTensorMemory * output)
{
GstTensorFilterPrivate *priv;
- guint i, status;
+ guint i;
+ gint status;
gboolean allocate_in_invoke;
gboolean run_without_model;
return TRUE;
error:
- if (allocate_in_invoke == FALSE)
- for (i = 0; i < priv->prop.output_meta.num_tensors; i++)
+ /* if failed to invoke the model, release allocated memory. */
+ if (allocate_in_invoke == FALSE) {
+ for (i = 0; i < priv->prop.output_meta.num_tensors; i++) {
g_free (output[i].data);
+ output[i].data = NULL;
+ }
+ }
return FALSE;
}
#endif /* __gnu_linux__ && !__ANDROID__ */
#include <tensor_split/gsttensorsplit.h>
#include <tensor_transform/tensor_transform.h>
-#include "tensor_if/gsttensorif.h"
+#include <tensor_if/gsttensorif.h>
#define NNSTREAMER_INIT(plugin,name,type) \
do { \
* @brief Wait until the change in pipeline status is done
* @return ML_ERROR_NONE success, ML_ERROR_UNKNOWN if failed, ML_ERROR_TIMED_OUT if timeout happens.
*/
-int
+static int
waitPipelineStateChange (ml_pipeline_h handle, ml_pipeline_state_e state,
guint timeout_ms)
{