webrtc_ini: Fix condition to get delimiter of gst arguments configuration 40/247240/4
authorSangchul Lee <sc11.lee@samsung.com>
Mon, 9 Nov 2020 07:31:16 +0000 (16:31 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Thu, 12 Nov 2020 07:50:27 +0000 (16:50 +0900)
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 <sc11.lee@samsung.com>
packaging/capi-media-webrtc.spec
src/webrtc_ini.c
src/webrtc_private.c

index c44380d840d54db9e358c7c24a79ea5ffd418101..0b0af48acb8c4837cac141fbff96beafdceaa485 100644 (file)
@@ -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
index cde67e12603aba86a6e736969c337923afec339f..7150ed7f2b87fca645afc1d8af55a6fdaad88c75 100644 (file)
@@ -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;
index b56933036dda214b4dee1db13d9384aabe3ae5e2..2f01e8ad028e51ea44362dab297c8ca9224a163a 100644 (file)
@@ -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);