[Filter] Fix svace issue
authorSangjung Woo <sangjung.woo@samsung.com>
Mon, 2 Sep 2019 06:21:42 +0000 (15:21 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Mon, 2 Sep 2019 07:54:22 +0000 (16:54 +0900)
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 <sangjung.woo@samsung.com>
ext/nnstreamer/tensor_filter/tensor_filter_tensorflow_lite_core.cc

index 558cd65..f391f8b 100644 (file)
@@ -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);