Fix the use of invalid pad name and print log as error on link failure 76/244576/3 accepted/tizen/6.0/unified/20201030.122610 accepted/tizen/6.0/unified/hotfix/20201103.004914 accepted/tizen/6.0/unified/hotfix/20201103.052309 accepted/tizen/6.0/unified/hotfix/20210203.091157 accepted/tizen/unified/20200925.140245 submit/tizen/20200922.081213 submit/tizen_6.0/20201029.205102 submit/tizen_6.0_hotfix/20201102.192502 submit/tizen_6.0_hotfix/20201103.114802 submit/tizen_6.0_hotfix/20210203.135701 tizen_6.0.m2_release
authorHyunil <hyunil46.park@samsung.com>
Tue, 22 Sep 2020 05:38:30 +0000 (14:38 +0900)
committerHyunil <hyunil46.park@samsung.com>
Tue, 22 Sep 2020 05:59:51 +0000 (14:59 +0900)
- Change dlog level for link failure

[Issue Type] Bug fix
[Version] 0.1.121

Change-Id: I3fd758208f8dbfd56a3722dd30e2ad1d1b53793a
Signed-off-by: Hyunil <hyunil46.park@samsung.com>
packaging/capi-media-streamer.spec
src/media_streamer_gst.c

index 0077543..1bb8510 100644 (file)
@@ -1,6 +1,6 @@
 Name:       capi-media-streamer
 Summary:    A Media Streamer API
-Version:    0.1.120
+Version:    0.1.121
 Release:    0
 Group:      Multimedia/API
 License:    Apache-2.0
index ad59303..921b5c2 100644 (file)
@@ -428,7 +428,7 @@ static gboolean __ms_link_two_elements(GstElement *previous_element, GstPad *pre
                if (elements_linked)
                        ms_info("Succeeded to link [%s] -> [%s]", GST_ELEMENT_NAME(previous_element), GST_ELEMENT_NAME(found_element));
                else
-                       ms_debug("Failed to link [%s] and [%s]", GST_ELEMENT_NAME(previous_element), GST_ELEMENT_NAME(found_element));
+                       ms_error("Failed to link [%s] and [%s]", GST_ELEMENT_NAME(previous_element), GST_ELEMENT_NAME(found_element));
        } else
                ms_info("Element [%s] has no free compatible pad to be connected with [%s] or linked", GST_ELEMENT_NAME(found_element), GST_ELEMENT_NAME(previous_element));
 
@@ -1002,9 +1002,9 @@ void ms_rtpbin_pad_added_cb(GstElement *src, GstPad *new_pad, gpointer user_data
                ms_debug("type is [%s]", src_pad_type);
 
                if (MS_ELEMENT_IS_VIDEO(src_pad_type))
-                       src_pad_name = g_strdup_printf("%s_out", "video");
+                       src_pad_name = g_strdup_printf("%s-out", "video");
                else if (MS_ELEMENT_IS_AUDIO(src_pad_type))
-                       src_pad_name = g_strdup_printf("%s_out", "audio");
+                       src_pad_name = g_strdup_printf("%s-out", "audio");
 
                if (src_pad_name != NULL) {