webrtc_source/display/tbm: Change some logs to verbose level 03/263103/1
authorSangchul Lee <sc11.lee@samsung.com>
Thu, 26 Aug 2021 07:16:00 +0000 (16:16 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Thu, 26 Aug 2021 07:16:20 +0000 (16:16 +0900)
[Version] 0.2.84
[Issue Type] Log

Change-Id: I815d44f8332e839604f7660c678c26cca4a6347e
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
packaging/capi-media-webrtc.spec
src/webrtc_display.c
src/webrtc_source.c
src/webrtc_tbm.c

index 79ac6372afc721d6aea1feeb7ad26cdf8ba08509..596f748591b0af6b6bfe362eb39633513efcf258 100644 (file)
@@ -1,6 +1,6 @@
 Name:       capi-media-webrtc
 Summary:    A WebRTC library in Tizen Native API
-Version:    0.2.83
+Version:    0.2.84
 Release:    0
 Group:      Multimedia/API
 License:    Apache-2.0
index 1a1d79db5567c87900f99c012bc92338d042c43c..6af2bf1aff8033ba9ae2f89f888a09df3cba6215 100644 (file)
@@ -435,7 +435,7 @@ static int __media_packet_finalize_cb(media_packet_h m_packet, int error_code, v
                LOG_ERROR("failed to media_packet_get_tbm_surface()");
 
        if (ts) {
-               LOG_DEBUG("tbm surface[%p] is destroyed", ts);
+               LOG_VERBOSE("tbm surface[%p] is destroyed", ts);
                tbm_surface_destroy(ts);
        }
 
@@ -464,7 +464,7 @@ static media_packet_h __get_media_packet(webrtc_tbm_s *tbm, video_decoded_data_i
        ret = __get_media_packet_mimetype(info->format, &mimetype);
        RET_VAL_IF(ret != WEBRTC_ERROR_NONE, NULL, "failed to __get_media_packet_mimetype()");
 
-       LOG_DEBUG("mimetype[0x%x, %s], resolution[%dx%d], orientation[%d], timestamp[%u]",
+       LOG_VERBOSE("mimetype[0x%x, %s], resolution[%dx%d], orientation[%d], timestamp[%u]",
                mimetype, __get_format_string_from_mime_type(mimetype), info->width, info->height, info->orientation, info->timestamp);
 
        m_ret = media_format_create(&m_format);
@@ -510,7 +510,7 @@ static media_packet_h __get_media_packet(webrtc_tbm_s *tbm, video_decoded_data_i
 
        media_format_unref(m_format);
 
-       LOG_DEBUG("media packet[%p]", m_packet);
+       LOG_VERBOSE("media packet[%p]", m_packet);
 
        return m_packet;
 
@@ -568,7 +568,7 @@ static tbm_surface_h __get_tbm_surface(video_decoded_data_info_s *info)
                return NULL;
        }
 
-       LOG_DEBUG("tbm surface[%p] is created", ts);
+       LOG_VERBOSE("tbm surface[%p] is created", ts);
 
        return ts;
 }
@@ -626,7 +626,7 @@ void _video_stream_decoded_cb(GstElement *object, GstBuffer *buffer, GstPad *pad
 
        RET_IF(display == NULL, "display is NULL");
 
-       LOG_DEBUG("object[%p] buffer[%p] pad[%p] display[%p]", object, buffer, pad, display);
+       LOG_VERBOSE("object[%p] buffer[%p] pad[%p] display[%p]", object, buffer, pad, display);
 
        packet = __get_media_packet_from_buffer(display, buffer, pad);
        if (packet == NULL) {
index 6a806861777be907a1d5da8f09b86103b2877094..ff85fc8603a4cf7a9670c126f583a11f8e113f87 100644 (file)
@@ -736,7 +736,7 @@ static GstPadProbeReturn __source_data_probe_cb(GstPad *pad, GstPadProbeInfo *in
        appsrc = probe_data->source->av[probe_data->av_idx].render.appsrc;
        if (appsrc) {
                buffer = gst_pad_probe_info_get_buffer(info);
-               LOG_DEBUG("push buffer[%p] to the render pipeline, appsrc[%p]", buffer, appsrc);
+               LOG_VERBOSE("push buffer[%p] to the render pipeline, appsrc[%p]", buffer, appsrc);
                g_signal_emit_by_name(G_OBJECT(appsrc), "push-buffer", buffer, &gst_ret, NULL);
                if (gst_ret != GST_FLOW_OK)
                        LOG_ERROR("failed to 'push-buffer', gst_ret[%d]", gst_ret);
index 7722559da301aef1a31295220f3bd593d2df7327..8654d7fc2d3e4c64f980d582503b9cc0846b635d 100644 (file)
@@ -88,7 +88,7 @@ void *_get_unused_tbm_bo(webrtc_tbm_s *tbm, unsigned int timeout_sec)
                for (l = g_list_first(tbm->bo_list); l; l = g_list_next(l)) {
                        webrtc_tbm_bo_s *tbm_bo = (webrtc_tbm_bo_s *)l->data;
                        if (tbm_bo && (!tbm_bo->used)) {
-                               LOG_DEBUG("found unused bo[%p]", tbm_bo->bo);
+                               LOG_VERBOSE("found unused bo[%p]", tbm_bo->bo);
                                tbm_bo->used = true;
                                g_mutex_unlock(&tbm->mutex);
                                return tbm_bo_ref(tbm_bo->bo);
@@ -120,7 +120,7 @@ void _release_tbm_bo(webrtc_tbm_s *tbm, void *bo)
                webrtc_tbm_bo_s *tbm_bo = (webrtc_tbm_bo_s *)l->data;
                if (tbm_bo && (tbm_bo->bo == bo)) {
                        tbm_bo->used = false;
-                       LOG_DEBUG("unref bo[%p]", tbm_bo->bo);
+                       LOG_VERBOSE("unref bo[%p]", tbm_bo->bo);
                        tbm_bo_unref(tbm_bo->bo);
                        g_cond_signal(&tbm->cond);
                        g_mutex_unlock(&tbm->mutex);