media_editor_private : Fix svace issue 78/289778/1
authorHaesu Gwon <haesu.gwon@samsung.com>
Tue, 14 Mar 2023 07:57:27 +0000 (16:57 +0900)
committerHaesu Gwon <haesu.gwon@samsung.com>
Tue, 14 Mar 2023 07:57:27 +0000 (16:57 +0900)
- initialized variable was not set to TRUE even if it's initailized
  so it makes unreachable code.

[Version] 0.0.18
[Issue Type] Bug fix

Change-Id: I32f236befe63f93d25e810294cc5ce1d2034ac07

packaging/capi-media-editor.spec
src/media_editor_private.c

index f9acfd1..573c3e0 100644 (file)
@@ -1,6 +1,6 @@
 Name:       capi-media-editor
 Summary:    A Tizen Media Editor API
-Version:    0.0.17
+Version:    0.0.18
 Release:    0
 Group:      Multimedia/API
 License:    Apache-2.0
index 699db5f..41844c3 100644 (file)
@@ -437,8 +437,8 @@ int _gst_init(mediaeditor_s *editor)
     NULL_PARAM_CHECK(editor);
 
     if (initialized) {
-        LOG_ERROR("gstreamer is already initialized.");
-        return TRUE;
+        LOG_INFO("gstreamer is already initialized.");
+        return MEDIAEDITOR_ERROR_NONE;
     }
 
     gst_args = editor->ini.general.gst_args;
@@ -478,6 +478,8 @@ int _gst_init(mediaeditor_s *editor)
     /* Initialize the GStreamer Editing Services */
     ges_init();
 
+    initialized = TRUE;
+
     return MEDIAEDITOR_ERROR_NONE;
 }