From: Sangjung Woo Date: Mon, 2 Sep 2019 06:21:42 +0000 (+0900) Subject: [Filter] Fix svace issue X-Git-Tag: accepted/tizen/unified/20190905.060558~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2d075db72843a1a5bd685a18b7c2102fa3f171bf;p=platform%2Fupstream%2Fnnstreamer.git [Filter] Fix svace issue If the parameter hw of constructor is NNAPI_UNKNOWN, the member variable accel is not initialized. This patch fixes that bug. Signed-off-by: Sangjung Woo --- diff --git a/ext/nnstreamer/tensor_filter/tensor_filter_tensorflow_lite_core.cc b/ext/nnstreamer/tensor_filter/tensor_filter_tensorflow_lite_core.cc index 558cd65..f391f8b 100644 --- a/ext/nnstreamer/tensor_filter/tensor_filter_tensorflow_lite_core.cc +++ b/ext/nnstreamer/tensor_filter/tensor_filter_tensorflow_lite_core.cc @@ -48,8 +48,8 @@ TFLiteCore::TFLiteCore (const char * _model_path, nnapi_hw hw) use_nnapi = nnsconf_get_custom_value_bool ("tensorflowlite", "enable_nnapi", FALSE); } else { use_nnapi = TRUE; - accel = hw; } + accel = hw; gst_tensors_info_init (&inputTensorMeta); gst_tensors_info_init (&outputTensorMeta);