[Filter] correct misspells and improper logic
authorHyoung Joo Ahn <hello.ahnn@gmail.com>
Tue, 22 Jan 2019 04:22:57 +0000 (13:22 +0900)
committerMyungJoo Ham <myungjoo.ham@gmail.com>
Tue, 22 Jan 2019 06:55:03 +0000 (15:55 +0900)
there are some typos about in/out at a comment & exception handling

Signed-off-by: Hyoung Joo Ahn <hello.ahnn@gmail.com>
gst/nnstreamer/tensor_filter/tensor_filter.c

index 278b705..86a4630 100644 (file)
@@ -651,7 +651,7 @@ gst_tensor_filter_set_property (GObject * object, guint prop_id,
         if (prop->output_meta.num_tensors > 0 &&
             prop->output_meta.num_tensors != num_names) {
           GST_WARNING_OBJECT (self,
-              "Invalid input-name, given param does not match with old value.");
+              "Invalid output-name, given param does not match with old value.");
         }
 
         prop->output_meta.num_tensors = num_names;
@@ -1077,7 +1077,7 @@ gst_tensor_filter_configure_tensor (GstTensorFilter * self,
         /** if set-property called and already has info, verify it! */
         if (prop->output_meta.num_tensors > 0) {
           if (!gst_tensors_info_is_equal (&prop->output_meta, &out_info)) {
-            gchar *str = _compare_tensors (&in_config.info, &prop->input_meta);
+            gchar *str = _compare_tensors (&out_info, &prop->output_meta);
             GST_ERROR_OBJECT (self,
                 "The output tensor is not compatible.\n%s", str);
             g_free (str);