[Transform] init 0 for mode enum-value
authorJaeyun <jy1210.jung@samsung.com>
Fri, 29 Nov 2019 09:46:58 +0000 (18:46 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Tue, 3 Dec 2019 09:48:09 +0000 (18:48 +0900)
init 0 to register the enum-value for transform mode option.

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
gst/nnstreamer/tensor_transform/tensor_transform.c

index 2e7b56d..ded3d6d 100644 (file)
@@ -180,9 +180,9 @@ static gboolean gst_tensor_transform_transform_size (GstBaseTransform * trans,
 static GType
 gst_tensor_transform_mode_get_type (void)
 {
-  static GType mode_type = GTT_UNKNOWN;
+  static GType mode_type = 0;
 
-  if (mode_type == GTT_UNKNOWN) {
+  if (mode_type == 0) {
     static GEnumValue mode_types[] = {
       {GTT_DIMCHG, "Mode for changing tensor dimensions, "
             "option=FROM_DIM:TO_DIM (with a regex, " REGEX_DIMCHG_OPTION