From: Gilbok Lee Date: Thu, 13 Oct 2016 05:59:01 +0000 (+0900) Subject: [v0.3.28] remove unnecessary logs X-Git-Tag: submit/tizen/20161018.110515^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e7783e1640870badf27b09efd4871d2321937c00;p=platform%2Fcore%2Fapi%2Fplayer.git [v0.3.28] remove unnecessary logs Change-Id: Iec2b964ad02f1841ac5a9273674f194c99193456 --- diff --git a/src/player.c b/src/player.c index 7e5a33d..37377f3 100644 --- a/src/player.c +++ b/src/player.c @@ -833,7 +833,7 @@ static void __audio_frame_cb_handler(callback_cb_info_s * cb_info, _player_recv_ memcpy(&audio, thandle.ptr, sizeof(player_audio_raw_data_s)); audio.data = thandle.ptr + sizeof(player_audio_raw_data_s); - LOGD("user callback data %p, size %d", audio.data, audio.size); + /* LOGD("user callback data %p, size %d", audio.data, audio.size); */ ((player_audio_pcm_extraction_cb) cb_info->user_cb[MUSE_PLAYER_EVENT_TYPE_AUDIO_FRAME]) (&audio, cb_info->user_data[MUSE_PLAYER_EVENT_TYPE_AUDIO_FRAME]); tbm_bo_unmap(bo); @@ -847,7 +847,7 @@ EXIT: /* return buffer */ if (key > INVALID_DEFAULT_VALUE) { - LOGD("send msg to release buffer. key:%d", key); + /* LOGD("send msg to release buffer. key:%d", key); */ player_msg_send1_no_return(MUSE_PLAYER_API_RETURN_BUFFER, cb_info->fd, INT, key); } } @@ -1008,7 +1008,7 @@ gboolean _player_event_job_function(void *user_data) return FALSE; } - LOGD("enter ev:%d", data->int_data); + /* LOGD("enter ev:%d", data->int_data); */ g_mutex_lock(&data->event_mutex); @@ -1017,7 +1017,7 @@ gboolean _player_event_job_function(void *user_data) /* remove event from list */ g_mutex_lock(&data->cb_info->event_queue.idle_ev_mutex); if (data->cb_info->event_queue.idle_ev_list) { - LOGD("remove idle event %p, %p", data, data->cb_info->event_queue.idle_ev_list); + /* LOGD("remove idle event %p, %p", data, data->cb_info->event_queue.idle_ev_list); */ data->cb_info->event_queue.idle_ev_list = g_list_remove(data->cb_info->event_queue.idle_ev_list, (gpointer)data); } g_mutex_unlock(&data->cb_info->event_queue.idle_ev_mutex); @@ -1252,7 +1252,7 @@ static void _player_event_queue_add(player_event_queue * ev, _player_cb_data * d static void _user_callback_handler(callback_cb_info_s * cb_info, muse_player_event_e event, _player_recv_data *recv_data) { - LOGD("get event %d", event); + /* LOGD("get event %d", event); */ if (event < MUSE_PLAYER_EVENT_TYPE_NUM) { if (cb_info->user_cb[event] && _user_callbacks[event]) { diff --git a/src/player_internal.c b/src/player_internal.c index 2c32cbc..0eb448b 100644 --- a/src/player_internal.c +++ b/src/player_internal.c @@ -299,7 +299,7 @@ int player_get_next_uri(player_h player, char **uri) player_msg_get_string(next_uri, ret_buf); char dest[MUSE_MSG_MAX_LENGTH] = {0,}; - if(storage_get_compat_internal_path(next_uri, sizeof(dest), dest) < 0) { + if (storage_get_compat_internal_path(next_uri, sizeof(dest), dest) < 0) { /* cannot convert path. use the original one. */ *uri = strndup(next_uri, MUSE_MSG_MAX_LENGTH); } else { diff --git a/test/player_es_push_test.c b/test/player_es_push_test.c index 4fa8a14..4846c72 100644 --- a/test/player_es_push_test.c +++ b/test/player_es_push_test.c @@ -451,20 +451,18 @@ static void feed_video_data_thread_func(void *data) void _video_buffer_status_cb_ex(player_media_stream_buffer_status_e status, unsigned long long bytes, void *user_data) { - if (status == PLAYER_MEDIA_STREAM_BUFFER_UNDERRUN) { + if (status == PLAYER_MEDIA_STREAM_BUFFER_UNDERRUN) LOGE("video buffer is underrun state, current level byte = %llu", bytes); - } else if (status == PLAYER_MEDIA_STREAM_BUFFER_OVERFLOW) { + else if (status == PLAYER_MEDIA_STREAM_BUFFER_OVERFLOW) LOGE("video buffer is overrun state, current level byte = %llu", bytes); - } } void _audio_buffer_status_cb_ex(player_media_stream_buffer_status_e status, unsigned long long bytes, void *user_data) { - if (status == PLAYER_MEDIA_STREAM_BUFFER_UNDERRUN) { + if (status == PLAYER_MEDIA_STREAM_BUFFER_UNDERRUN) LOGE("audio buffer is underrun state, current level byte = %llu", bytes); - } else if (status == PLAYER_MEDIA_STREAM_BUFFER_OVERFLOW) { + else if (status == PLAYER_MEDIA_STREAM_BUFFER_OVERFLOW) LOGE("audio buffer is overrun state, current level byte = %llu", bytes); - } } void _video_seek_data_cb(unsigned long long offset, void *user_data)