From 02839359479b62f5b920bc550f145df9c997dba5 Mon Sep 17 00:00:00 2001 From: Haesu Gwon Date: Tue, 14 Mar 2023 16:57:27 +0900 Subject: [PATCH] media_editor_private : Fix svace issue - 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 | 2 +- src/media_editor_private.c | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/packaging/capi-media-editor.spec b/packaging/capi-media-editor.spec index f9acfd1..573c3e0 100644 --- a/packaging/capi-media-editor.spec +++ b/packaging/capi-media-editor.spec @@ -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 diff --git a/src/media_editor_private.c b/src/media_editor_private.c index 699db5f..41844c3 100644 --- a/src/media_editor_private.c +++ b/src/media_editor_private.c @@ -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; } -- 2.7.4