From: Haesu Gwon Date: Tue, 14 Mar 2023 07:57:27 +0000 (+0900) Subject: media_editor_private : Fix svace issue X-Git-Tag: accepted/tizen/unified/20230321.123232~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=02839359479b62f5b920bc550f145df9c997dba5;p=platform%2Fcore%2Fapi%2Fmediaeditor.git 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 --- 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; }