From: Sangchul Lee Date: Mon, 9 Nov 2020 07:31:16 +0000 (+0900) Subject: webrtc_ini: Fix condition to get delimiter of gst arguments configuration X-Git-Tag: submit/tizen/20210729.023123~189 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=04e6ad765233c8a775045c45feb518af2d953cf1;p=platform%2Fcore%2Fapi%2Fwebrtc.git webrtc_ini: Fix condition to get delimiter of gst arguments configuration It's a side-effect of the commit below. - webrtc_ini: Revise ini related codes (3aa1d048c4df223ddd2f90e642b2420f5e79fba6) Some log levels are changed. [Version] 0.1.53 [Issue Type] Bug fix Change-Id: I1641e6eee0be078bfdd1eb87dabbd68d1054a603 Signed-off-by: Sangchul Lee --- diff --git a/packaging/capi-media-webrtc.spec b/packaging/capi-media-webrtc.spec index c44380d8..0b0af48a 100644 --- a/packaging/capi-media-webrtc.spec +++ b/packaging/capi-media-webrtc.spec @@ -1,6 +1,6 @@ Name: capi-media-webrtc Summary: A WebRTC library in Tizen Native API -Version: 0.1.52 +Version: 0.1.53 Release: 0 Group: Multimedia/API License: Apache-2.0 diff --git a/src/webrtc_ini.c b/src/webrtc_ini.c index cde67e12..7150ed7f 100644 --- a/src/webrtc_ini.c +++ b/src/webrtc_ini.c @@ -163,7 +163,7 @@ static const char* __get_delimiter(const char *ini_path) { const char *delimiter = ","; - if (g_strcmp0(ini_path, INI_ITEM_GST_ARGS) == 0) + if (g_strrstr(ini_path, INI_ITEM_GST_ARGS)) delimiter = "|"; return delimiter; diff --git a/src/webrtc_private.c b/src/webrtc_private.c index b5693303..2f01e8ad 100644 --- a/src/webrtc_private.c +++ b/src/webrtc_private.c @@ -295,7 +295,7 @@ GstElement *_create_element(const char *factory_name, const char *name) element = gst_element_factory_make(factory_name, name); RET_VAL_IF(!element, NULL, "element is NULL [%s]", factory_name); - LOG_DEBUG("created element [%s, %s]", factory_name, SAFE_STR(name)); + LOG_INFO("created element [%s, %s]", factory_name, SAFE_STR(name)); return element; } @@ -325,14 +325,14 @@ static gboolean __element_filter(GstPluginFeature *feature, gpointer data) if (GST_IS_CAPS(elem_info->src_caps) && GST_IS_CAPS(elem_info->sink_caps)) { if (src_can_accept && sink_can_accept) { - LOG_INFO("found compatible factory [%s] for klass [%s]", GST_OBJECT_NAME(factory), factory_klass); + LOG_DEBUG("found compatible factory [%s] for klass [%s]", GST_OBJECT_NAME(factory), factory_klass); return TRUE; } return FALSE; } if (src_can_accept || sink_can_accept) { - LOG_INFO("found compatible factory [%s] for klass [%s]", GST_OBJECT_NAME(factory), factory_klass); + LOG_DEBUG("found compatible factory [%s] for klass [%s]", GST_OBJECT_NAME(factory), factory_klass); return TRUE; } @@ -365,7 +365,7 @@ GstElement *_create_element_from_registry(element_info_s *elem_info) if (factories) { factory = GST_ELEMENT_FACTORY(factories->data); - LOG_DEBUG("sorted result element is [%s]", GST_OBJECT_NAME(factory)); + LOG_INFO("sorted result element is [%s]", GST_OBJECT_NAME(factory)); element = _create_element(GST_OBJECT_NAME(factory), NULL); } else { LOG_DEBUG("could not find any compatible element for klass_name[%s]", elem_info->klass_name);