Revise error log 53/235953/1
authorSangchul Lee <sc11.lee@samsung.com>
Thu, 11 Jun 2020 08:49:28 +0000 (17:49 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Thu, 11 Jun 2020 08:50:33 +0000 (17:50 +0900)
[Version] 0.1.58
[Issue Type] Log

Change-Id: I0d545bf2488c6ee5dd9dee796b715144648a697f
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
packaging/capi-media-streamer.spec
src/media_streamer_gst_webrtc.c

index 76ffd39..4f87b88 100644 (file)
@@ -1,6 +1,6 @@
 Name:       capi-media-streamer
 Summary:    A Media Streamer API
-Version:    0.1.57
+Version:    0.1.58
 Release:    0
 Group:      Multimedia/API
 License:    Apache-2.0
index 25df152..a0d3698 100644 (file)
@@ -198,7 +198,8 @@ int ms_webrtcbin_set_remote_session_description(media_streamer_node_s *webrtc_no
        GstElement *webrtcbin;
        int ret = MEDIA_STREAMER_ERROR_NONE;
 
-       ms_retvm_if(webrtc_node == NULL || webrtc_node->gst_element == NULL, MEDIA_STREAMER_ERROR_INVALID_PARAMETER, "Error: empty webrtcbin");
+       ms_retvm_if(webrtc_node == NULL, MEDIA_STREAMER_ERROR_INVALID_PARAMETER, "webrtc_node is NULL");
+       ms_retvm_if(webrtc_node->gst_element == NULL, MEDIA_STREAMER_ERROR_INVALID_PARAMETER, "webrtc_container is NULL");
        ms_retvm_if(sdp_msg == NULL, MEDIA_STREAMER_ERROR_INVALID_PARAMETER, "sdp_msg is NULL");
 
        ms_debug_fenter();
@@ -261,7 +262,8 @@ int ms_webrtcbin_add_ice_candidate(media_streamer_node_s *webrtc_node, const cha
        GstElement *webrtcbin;
        int ret;
 
-       ms_retvm_if(webrtc_node == NULL || webrtc_node->gst_element == NULL, MEDIA_STREAMER_ERROR_INVALID_PARAMETER, "Error: empty webrtcbin");
+       ms_retvm_if(webrtc_node == NULL, MEDIA_STREAMER_ERROR_INVALID_PARAMETER, "webrtc_node is NULL");
+       ms_retvm_if(webrtc_node->gst_element == NULL, MEDIA_STREAMER_ERROR_INVALID_PARAMETER, "webrtc_container is NULL");
        ms_retvm_if(ice_msg == NULL, MEDIA_STREAMER_ERROR_INVALID_PARAMETER, "ice_msg is NULL");
 
        ms_debug_fenter();
@@ -291,7 +293,7 @@ int ms_webrtcbin_set_stun_server(media_streamer_node_s *webrtc_node, const char
        GValue *val;
        const gchar *stun_server = NULL;
 
-       ms_retvm_if(webrtc_node == NULL, MEDIA_STREAMER_ERROR_INVALID_PARAMETER, "node is NULL");
+       ms_retvm_if(webrtc_node == NULL, MEDIA_STREAMER_ERROR_INVALID_PARAMETER, "webrtc_node is NULL");
        ms_retvm_if(webrtc_node->gst_element == NULL, MEDIA_STREAMER_ERROR_INVALID_PARAMETER, "webrtc_container is NULL");
        ms_retvm_if(stun_server_url == NULL, MEDIA_STREAMER_ERROR_INVALID_PARAMETER, "stun_server_url is NULL");
 
@@ -551,7 +553,7 @@ GstElement *ms_webrtc_element_create(void)
        ms_debug_fenter();
 
        webrtc_container = gst_bin_new("webrtc_container");
-       ms_retvm_if(!webrtc_container, (GstElement *) NULL, "Error: creating elements for webrtc container");
+       ms_retvm_if(!webrtc_container, (GstElement *) NULL, "Failed to create webrtc container");
 
        ms_add_no_target_ghostpad(webrtc_container, MS_RTP_PAD_VIDEO_IN, GST_PAD_SINK);