[TizenSensor] init sensor type
authorJaeyun <jy1210.jung@samsung.com>
Tue, 30 Mar 2021 09:12:09 +0000 (18:12 +0900)
committerSangjung Woo <again4you@gmail.com>
Tue, 30 Mar 2021 09:52:26 +0000 (18:52 +0900)
set init value of sensor type. 'all' means no specific sensor and if user does not set type in pipeline, it will be failed.

Signed-off-by: Jaeyun <jy1210.jung@samsung.com>
ext/nnstreamer/tensor_source/tensor_src_tizensensor.c

index 96156d2..8664b0e 100644 (file)
@@ -443,6 +443,7 @@ gst_tensor_src_tizensensor_init (GstTensorSrcTIZENSENSOR * self)
   self->running = FALSE;
   self->freq_n = DEFAULT_PROP_FREQ_N;
   self->freq_d = DEFAULT_PROP_FREQ_D;
+  self->type = SENSOR_ALL;
 
   g_mutex_init (&self->lock);