handle->user_cb[type] = callback;
handle->user_data[type] = user_data;
- LOGI("[%s] Event type : %d ", __FUNCTION__, type);
+ LOGI("Event type : %d ", type);
return PLAYER_ERROR_NONE;
}
PLAYER_INSTANCE_CHECK(player);
handle->user_cb[type] = NULL;
handle->user_data[type] = NULL;
- LOGI("[%s] Event type : %d ", __FUNCTION__, type);
+ LOGI("Event type : %d ", type);
return PLAYER_ERROR_NONE;
}
{
player_s *handle = (player_s *)user_data;
MMMessageParamType *msg = (MMMessageParamType *)param;
- LOGW("[%s] Got message type : 0x%x", __FUNCTION__, message);
player_error_e err_code = PLAYER_ERROR_NONE;
+
+ LOGW("Got message type : 0x%x", message);
switch (message) {
case MM_MESSAGE_ERROR: /* 0x01 */
err_code = __player_convert_error_code(msg->code, (char *)__FUNCTION__);
LEGACY_PLAYER_USER_CB_LOCK(handle, MUSE_PLAYER_EVENT_TYPE_PREPARE);
if (PLAYER_ERROR_NOT_SUPPORTED_FILE == err_code && handle->user_cb[MUSE_PLAYER_EVENT_TYPE_PREPARE]) {
- LOGW("failed to pause, so prepare cb will be released soon");
+ LOGW("Failed to pause, so prepare cb will be released soon");
handle->user_cb[MUSE_PLAYER_EVENT_TYPE_PREPARE] = NULL;
if (handle->user_data[MUSE_PLAYER_EVENT_TYPE_PREPARE]) {
g_free(handle->user_data[MUSE_PLAYER_EVENT_TYPE_PREPARE]);
LEGACY_PLAYER_USER_CB_LOCK(handle, MUSE_PLAYER_EVENT_TYPE_PREPARE);
if (handle->user_cb[MUSE_PLAYER_EVENT_TYPE_PREPARE]) {
/* asyc && prepared cb has been set */
- LOGI("[%s] Prepared! [current state : %d]", __FUNCTION__, handle->state);
+ LOGI("Prepared! [current state : %d]", handle->state);
PLAYER_TRACE_ASYNC_END("MM:PLAYER:PREPARE_ASYNC", *(int *)handle);
__ADD_MESSAGE(handle, PLAYER_MESSAGE_PREPARED);
}
}
break;
case MM_MESSAGE_BEGIN_OF_STREAM: /* 0x104 */
- LOGI("[%s] Ready to streaming information (BOS) [current state : %d]", __FUNCTION__, handle->state);
+ LOGI("Ready to streaming information (BOS) [current state : %d]", handle->state);
break;
case MM_MESSAGE_END_OF_STREAM: /* 0x105 */
if (handle->user_cb[MUSE_PLAYER_EVENT_TYPE_COMPLETE])
}
break;
case MM_MESSAGE_CONNECTION_TIMEOUT: /* 0x102 */
- LOGI("[%s] PLAYER_ERROR_CONNECTION_FAILED (0x%08x) : CONNECTION_TIMEOUT", __FUNCTION__, PLAYER_ERROR_CONNECTION_FAILED);
+ LOGE("PLAYER_ERROR_CONNECTION_FAILED : CONNECTION_TIMEOUT");
err_code = PLAYER_ERROR_CONNECTION_FAILED;
break;
case MM_MESSAGE_UPDATE_SUBTITLE: /* 0x109 */
((player_subtitle_updated_cb)handle->user_cb[MUSE_PLAYER_EVENT_TYPE_SUBTITLE])(msg->subtitle.duration, (char *)msg->data, handle->user_data[MUSE_PLAYER_EVENT_TYPE_SUBTITLE]);
break;
case MM_MESSAGE_VIDEO_NOT_CAPTURED: /* 0x113 */
- LOGI("[%s] PLAYER_ERROR_VIDEO_CAPTURE_FAILED (0x%08x)", __FUNCTION__, PLAYER_ERROR_VIDEO_CAPTURE_FAILED);
+ LOGE("PLAYER_ERROR_VIDEO_CAPTURE_FAILED");
if (handle->user_cb[MUSE_PLAYER_EVENT_TYPE_ERROR])
((player_error_cb)handle->user_cb[MUSE_PLAYER_EVENT_TYPE_ERROR])(PLAYER_ERROR_VIDEO_CAPTURE_FAILED, handle->user_data[MUSE_PLAYER_EVENT_TYPE_ERROR]);
break;
if (handle->user_cb[MUSE_PLAYER_EVENT_TYPE_CAPTURE]) {
if (!capture || !capture->data) {
- LOGE("PLAYER_ERROR_VIDEO_CAPTURE_FAILED (0x%08x) : Failed to get capture data", PLAYER_ERROR_VIDEO_CAPTURE_FAILED);
+ LOGE("PLAYER_ERROR_VIDEO_CAPTURE_FAILED : Failed to get capture data");
err_code = PLAYER_ERROR_VIDEO_CAPTURE_FAILED;
} else {
LOGI("captured image ori: %d, width: %d, height: %d, size: %d",
break;
}
case MM_MESSAGE_FILE_NOT_SUPPORTED: /* 0x10f */
- LOGI("[%s] PLAYER_ERROR_NOT_SUPPORTED_FILE (0x%08x) : FILE_NOT_SUPPORTED", __FUNCTION__, PLAYER_ERROR_NOT_SUPPORTED_FILE);
+ LOGE("PLAYER_ERROR_NOT_SUPPORTED_FILE : FILE_NOT_SUPPORTED");
err_code = PLAYER_ERROR_NOT_SUPPORTED_FILE;
break;
case MM_MESSAGE_FILE_NOT_FOUND: /* 0x110 */
- LOGI("[%s] PLAYER_ERROR_NOT_SUPPORTED_FILE (0x%08x) : FILE_NOT_FOUND", __FUNCTION__, PLAYER_ERROR_NOT_SUPPORTED_FILE);
+ LOGE("PLAYER_ERROR_NOT_SUPPORTED_FILE : FILE_NOT_FOUND");
err_code = PLAYER_ERROR_NOT_SUPPORTED_FILE;
break;
case MM_MESSAGE_SEEK_COMPLETED: /* 0x114 */
if (handle->is_display_visible) {
int ret = mm_player_set_attribute(handle->mm_handle, NULL, "display_visible", 1, (char *)NULL);
if (ret != MM_ERROR_NONE)
- LOGW("[%s] Failed to set display_visible '1' (0x%x)", __FUNCTION__, ret);
+ LOGW("Failed to set display_visible '1' (0x%x)", ret);
}
}
if (handle->user_cb[MUSE_PLAYER_EVENT_TYPE_SEEK]) {
handle->error_code = err_code;
__ADD_MESSAGE(handle, PLAYER_MESSAGE_ERROR);
}
- LOGW("[%s] End", __FUNCTION__);
+
+ LPLAYER_FLEAVE();
return 1;
}
{
player_s *handle;
int ret = MM_ERROR_NONE;
+
PLAYER_INSTANCE_CHECK(player);
PLAYER_TRACE_BEGIN("MM:PLAYER:CREATE");
+
handle = g_try_new0(player_s, 1);
if (!handle) {
- LOGE("[%s] PLAYER_ERROR_OUT_OF_MEMORY(0x%08x)", __FUNCTION__, PLAYER_ERROR_OUT_OF_MEMORY);
+ LOGE("PLAYER_ERROR_OUT_OF_MEMORY");
return PLAYER_ERROR_OUT_OF_MEMORY;
}
ret = mm_player_create(&handle->mm_handle);
if (ret != MM_ERROR_NONE) {
- LOGE("[%s] PLAYER_ERROR_INVALID_OPERATION(0x%08x)", __FUNCTION__, PLAYER_ERROR_INVALID_OPERATION);
+ LOGE("Failed to create player 0x%X", ret);
__player_update_state(handle, PLAYER_INTERNAL_STATE_NONE);
g_free(handle);
handle = NULL;
g_cond_init(&handle->message_queue_cond);
ret = pthread_create(&handle->message_thread, NULL, (void *)__message_cb_loop, (void *)handle);
if (ret != 0) {
- LOGE("[%s] failed to create message thread ret = %d", __FUNCTION__, ret);
+ LOGE("Failed to create message thread 0x%X", ret);
return PLAYER_ERROR_OUT_OF_MEMORY;
}
- LOGI("[%s] new handle : %p", __FUNCTION__, *player);
+ LOGI("new handle : %p", *player);
PLAYER_TRACE_END();
return PLAYER_ERROR_NONE;
}
{
player_s *handle = (player_s *)player;
int ret = MM_ERROR_NONE;
- LOGI("[%s] Start, handle to destroy : %p", __FUNCTION__, player);
+
+ LOGI("<Enter: %p>", player);
PLAYER_TRACE_BEGIN("MM:PLAYER:DESTROY");
PLAYER_INSTANCE_CHECK(player);
ret = mm_player_destroy(handle->mm_handle);
if (ret != MM_ERROR_NONE) {
- LOGE("[%s] PLAYER_ERROR_INVALID_OPERATION(0x%08x)", __FUNCTION__, PLAYER_ERROR_INVALID_OPERATION);
+ LOGE("Failed to player destroy 0x%X", ret);
return PLAYER_ERROR_INVALID_OPERATION;
}
- LOGI("[%s] Done mm_player_destroy", __FUNCTION__);
+ LOGI("Done mm_player_destroy");
muse_player_event_e type = MUSE_PLAYER_EVENT_TYPE_PREPARE;
g_free(handle);
handle = NULL;
- LOGI("[%s] End", __FUNCTION__);
+
+ LPLAYER_FLEAVE();
PLAYER_TRACE_END();
return PLAYER_ERROR_NONE;
}
int visible = 0;
int value = 0;
- LOGI("[%s] Start", __FUNCTION__);
+ LPLAYER_FENTER();
PLAYER_INSTANCE_CHECK(player);
PLAYER_TRACE_ASYNC_BEGIN("MM:PLAYER:PREPARE_ASYNC", *(int *)handle);
PLAYER_STATE_CHECK(handle, PLAYER_STATE_IDLE);
handle->last_play_position = 0;
if (handle->user_cb[MUSE_PLAYER_EVENT_TYPE_PREPARE]) {
- LOGE("[%s] PLAYER_ERROR_INVALID_OPERATION (0x%08x) : preparing... we can't do any more ", __FUNCTION__, PLAYER_ERROR_INVALID_OPERATION);
+ LOGE("player is already prepareing");
LEGACY_PLAYER_USER_CB_UNLOCK(handle, MUSE_PLAYER_EVENT_TYPE_PREPARE);
__player_update_state(handle, PLAYER_INTERNAL_STATE_IDLE);
return PLAYER_ERROR_INVALID_OPERATION;
}
- /* LOGI("[%s] Event type : %d ",__FUNCTION__, MUSE_PLAYER_EVENT_TYPE_PREPARE); */
+ /* LOGI("Event type : %d ", MUSE_PLAYER_EVENT_TYPE_PREPARE); */
handle->user_cb[MUSE_PLAYER_EVENT_TYPE_PREPARE] = callback;
handle->user_data[MUSE_PLAYER_EVENT_TYPE_PREPARE] = user_data;
ret = mm_player_set_message_callback(handle->mm_handle, __msg_callback, (void *)handle);
if (ret != MM_ERROR_NONE)
- LOGW("[%s] Failed to set message callback function (0x%x)", __FUNCTION__, ret);
+ LOGW("Failed to set message callback function (0x%x)", ret);
if (handle->display_type == PLAYER_DISPLAY_TYPE_NONE) {
ret = mm_player_set_attribute(handle->mm_handle, NULL, "display_surface_type", MM_DISPLAY_SURFACE_NULL, (char *)NULL);
if (ret != MM_ERROR_NONE)
- LOGW("[%s] Failed to set display surface type 'MM_DISPLAY_SURFACE_NULL' (0x%x)", __FUNCTION__, ret);
+ LOGW("Failed to set display surface type 'MM_DISPLAY_SURFACE_NULL' (0x%x)", ret);
} else {
/* FIXME : new funct path is needed to update video instead of set attr again */
ret = mm_player_realize(handle->mm_handle);
if (ret != MM_ERROR_NONE) {
- LOGE("[%s] Failed to realize - 0x%x", __FUNCTION__, ret);
+ LOGE("Failed to realize - 0x%x", ret);
goto ERROR;
}
ret = pthread_create(&handle->prepare_async_thread, NULL, (void *)__prepare_async_thread_func, (void *)handle);
if (ret != 0) {
- LOGE("[%s] failed to create thread ret = %d", __FUNCTION__, ret);
+ LOGE("Failed to create thread ret = %d", ret);
LEGACY_PLAYER_USER_CB_LOCK(handle, MUSE_PLAYER_EVENT_TYPE_PREPARE);
if (handle->user_cb[MUSE_PLAYER_EVENT_TYPE_PREPARE]) {
handle->user_cb[MUSE_PLAYER_EVENT_TYPE_PREPARE] = NULL;
return PLAYER_ERROR_OUT_OF_MEMORY;
}
- LOGI("[%s] End", __FUNCTION__);
+ LPLAYER_FLEAVE();
return PLAYER_ERROR_NONE;
ERROR:
LEGACY_PLAYER_USER_CB_UNLOCK(handle, MUSE_PLAYER_EVENT_TYPE_PREPARE);
__player_update_state(handle, PLAYER_INTERNAL_STATE_IDLE);
- LOGE("LEAVE mm_err:0x%X", ret);
+ LOGE("LEAVE 0x%X", ret);
return __player_convert_error_code(ret, (char *)__FUNCTION__);
}
int visible = 0;
player_s *handle = (player_s *)player;
- LOGI("[%s] Start", __FUNCTION__);
+ LPLAYER_FENTER();
PLAYER_TRACE_BEGIN("MM:PLAYER:PREPARE");
PLAYER_INSTANCE_CHECK(player);
PLAYER_STATE_CHECK(handle, PLAYER_STATE_IDLE);
handle->last_play_position = 0;
ret = mm_player_set_message_callback(handle->mm_handle, __msg_callback, (void *)handle);
if (ret != MM_ERROR_NONE)
- LOGW("[%s] Failed to set message callback function (0x%x)", __FUNCTION__, ret);
+ LOGW("Failed to set message callback function (0x%x)", ret);
if (handle->display_type == PLAYER_DISPLAY_TYPE_NONE) {
ret = mm_player_set_attribute(handle->mm_handle, NULL, "display_surface_type", MM_DISPLAY_SURFACE_NULL, (char *)NULL);
if (ret != MM_ERROR_NONE)
- LOGW("[%s] Failed to set display surface type 'MM_DISPLAY_SURFACE_NULL' (0x%x)", __FUNCTION__, ret);
+ LOGW("Failed to set display surface type 'MM_DISPLAY_SURFACE_NULL' (0x%x)", ret);
} else {
ret = mm_player_get_attribute(handle->mm_handle, NULL, "display_visible", &visible, (char *)NULL);
if (ret != MM_ERROR_NONE) {
ret = mm_player_set_attribute(handle->mm_handle, NULL, "display_visible", visible, (char *)NULL);
if (ret != MM_ERROR_NONE)
- LOGW("[%s] Failed to set display display_visible '%d' (0x%x)", __FUNCTION__, visible, ret);
+ LOGW("Failed to set display display_visible '%d' (0x%x)", visible, ret);
}
ret = mm_player_realize(handle->mm_handle);
if (ret != MM_ERROR_NONE) {
- LOGE("[%s] Failed to realize - 0x%x", __FUNCTION__, ret);
+ LOGE("Failed to realize - 0x%x", ret);
__player_update_state(handle, PLAYER_INTERNAL_STATE_IDLE);
return __player_convert_error_code(ret, (char *)__FUNCTION__);
}
int uret;
uret = mm_player_unrealize(handle->mm_handle);
if (uret != MM_ERROR_NONE)
- LOGE("[%s] Failed to unrealize - 0x%x", __FUNCTION__, uret);
+ LOGE("Failed to unrealize - 0x%x", uret);
- LOGE("[%s] Failed to pause - 0x%x", __FUNCTION__, ret);
+ LOGE("Failed to pause - 0x%x", ret);
__player_update_state(handle, PLAYER_INTERNAL_STATE_IDLE);
return __player_convert_error_code(ret, (char *)__FUNCTION__);
}
__player_update_state(handle, PLAYER_INTERNAL_STATE_READY);
- LOGI("[%s] End", __FUNCTION__);
+
+ LPLAYER_FLEAVE();
PLAYER_TRACE_END();
return PLAYER_ERROR_NONE;
}
}
if (!__player_state_validate(handle, PLAYER_STATE_READY) && !handle->user_cb[MUSE_PLAYER_EVENT_TYPE_PREPARE]) {
- LOGE("[%s] PLAYER_ERROR_INVALID_STATE(0x%08x) : current state - %d", __FUNCTION__, PLAYER_ERROR_INVALID_STATE, handle->state);
+ LOGE("PLAYER_ERROR_INVALID_STATE : current state - %d", handle->state);
return PLAYER_ERROR_INVALID_STATE;
}
{
player_s *handle = (player_s *)player;
int ret = MM_ERROR_NONE;
- LOGI("[%s] Start", __FUNCTION__);
+
+ LPLAYER_FENTER();
PLAYER_INSTANCE_CHECK(player);
if (handle->state > PLAYER_STATE_IDLE) {
if (handle->display_type == PLAYER_DISPLAY_TYPE_OVERLAY && handle->is_display_visible) {
ret = mm_player_set_attribute(handle->mm_handle, NULL, "display_visible", 1, (char *)NULL);
if (ret != MM_ERROR_NONE)
- LOGW("[%s] Failed to set display_visible '1' (0x%x)", __FUNCTION__, ret);
+ LOGW("Failed to set display_visible '1' (0x%x)", ret);
}
if (handle->internal_state == PLAYER_INTERNAL_STATE_STOPPED) {
ret = mm_player_start(handle->mm_handle);
- LOGI("[%s] stop -> start() ", __FUNCTION__);
+ LOGI("stop -> start() ");
} else {
if (handle->state == PLAYER_STATE_READY)
ret = mm_player_start(handle->mm_handle);
ret = mm_player_resume(handle->mm_handle);
}
} else {
- LOGE("[%s] PLAYER_ERROR_INVALID_STATE(0x%08x) : current state - %d", __FUNCTION__, PLAYER_ERROR_INVALID_STATE, handle->state);
+ LOGE("PLAYER_ERROR_INVALID_STATE : current state - %d", handle->state);
return PLAYER_ERROR_INVALID_STATE;
}
return __player_convert_error_code(ret, (char *)__FUNCTION__);
__player_update_state(handle, PLAYER_INTERNAL_STATE_PLAYING);
- LOGI("[%s] End", __FUNCTION__);
+
+ LPLAYER_FLEAVE();
return PLAYER_ERROR_NONE;
}
{
player_s *handle = (player_s *)player;
int ret = MM_ERROR_NONE;
- LOGI("[%s] Start", __FUNCTION__);
+
+ LPLAYER_FENTER();
PLAYER_INSTANCE_CHECK(player);
if (handle->state == PLAYER_STATE_PLAYING || handle->state == PLAYER_STATE_PAUSED) {
if (handle->display_type == PLAYER_DISPLAY_TYPE_OVERLAY) {
ret = mm_player_set_attribute(handle->mm_handle, NULL, "display_visible", 0, (char *)NULL);
if (ret != MM_ERROR_NONE)
- LOGW("[%s] Failed to set display_visible '0' (0x%x)", __FUNCTION__, ret);
+ LOGW("Failed to set display_visible '0' (0x%x)", ret);
}
ret = mm_player_stop(handle->mm_handle);
__player_update_state(handle, PLAYER_INTERNAL_STATE_STOPPED);
- LOGI("[%s] End", __FUNCTION__);
+ LPLAYER_FLEAVE();
return PLAYER_ERROR_NONE;
}
- LOGE("[%s] PLAYER_ERROR_INVALID_STATE(0x%08x) : current state - %d", __FUNCTION__, PLAYER_ERROR_INVALID_STATE, handle->state);
+ LOGE("PLAYER_ERROR_INVALID_STATE : current state - %d", handle->state);
return PLAYER_ERROR_INVALID_STATE;
}
{
player_s *handle = (player_s *)player;
int ret = MM_ERROR_NONE;
- LOGI("[%s] Start", __FUNCTION__);
+
+ LPLAYER_FENTER();
PLAYER_INSTANCE_CHECK(player);
PLAYER_STATE_CHECK(handle, PLAYER_STATE_PLAYING);
return __player_convert_error_code(ret, (char *)__FUNCTION__);
__player_update_state(handle, PLAYER_INTERNAL_STATE_PAUSED);
- LOGI("[%s] End", __FUNCTION__);
+
+ LPLAYER_FLEAVE();
return PLAYER_ERROR_NONE;
}
player_s *handle = (player_s *)player;
int ret = MM_ERROR_NONE;
int accurated = accurate ? 1 : 0;
+
+ LPLAYER_FENTER();
PLAYER_INSTANCE_CHECK(player);
PLAYER_CHECK_CONDITION(nanoseconds >= 0, PLAYER_ERROR_INVALID_PARAMETER, "PLAYER_ERROR_INVALID_PARAMETER");
if (!__player_state_validate(handle, PLAYER_STATE_READY)) {
- LOGE("[%s] PLAYER_ERROR_INVALID_STATE(0x%08x) : current state - %d", __FUNCTION__, PLAYER_ERROR_INVALID_STATE, handle->state);
+ LOGE("PLAYER_ERROR_INVALID_STATE : current state - %d", handle->state);
return PLAYER_ERROR_INVALID_STATE;
}
if (handle->user_cb[MUSE_PLAYER_EVENT_TYPE_SEEK] && !handle->is_media_stream) {
- LOGE("[%s] PLAYER_ERROR_SEEK_FAILED temp (0x%08x) : seeking... we can't do any more ", __FUNCTION__, PLAYER_ERROR_SEEK_FAILED);
+ LOGE("previous seeking request is in processing.");
return PLAYER_ERROR_SEEK_FAILED;
}
- LOGI("[%s] Event type : %d, pos : %"PRId64, __FUNCTION__, MUSE_PLAYER_EVENT_TYPE_SEEK, nanoseconds);
+ LOGI("Event type : %d, pos : %"PRId64, MUSE_PLAYER_EVENT_TYPE_SEEK, nanoseconds);
handle->user_cb[MUSE_PLAYER_EVENT_TYPE_SEEK] = callback;
handle->user_data[MUSE_PLAYER_EVENT_TYPE_SEEK] = user_data;
return __player_convert_error_code(ret, (char *)__FUNCTION__);
}
+ LPLAYER_FLEAVE();
return PLAYER_ERROR_NONE;
}
PLAYER_NULL_ARG_CHECK(nanoseconds);
if (!__player_state_validate(handle, PLAYER_STATE_IDLE)) {
- LOGE("[%s] PLAYER_ERROR_INVALID_STATE(0x%08x) : current state - %d", __FUNCTION__, PLAYER_ERROR_INVALID_STATE, handle->state);
+ LOGE("PLAYER_ERROR_INVALID_STATE : current state - %d", handle->state);
return PLAYER_ERROR_INVALID_STATE;
}
PLAYER_NULL_ARG_CHECK(duration);
if (!__player_state_validate(handle, PLAYER_STATE_READY)) {
- LOGE("[%s] PLAYER_ERROR_INVALID_STATE(0x%08x) : current state - %d", __FUNCTION__, PLAYER_ERROR_INVALID_STATE, handle->state);
+ LOGE("PLAYER_ERROR_INVALID_STATE : current state - %d", handle->state);
return PLAYER_ERROR_INVALID_STATE;
}
{
player_s *handle = (player_s *)player;
int ret = MM_ERROR_NONE;
+
+ LOGI("<ENTER: mode:%d>", mode);
PLAYER_INSTANCE_CHECK(player);
- LOGI("[%s] mode:%d", __FUNCTION__, mode);
ret = mm_player_set_attribute(handle->mm_handle, NULL, "display_method", mode, (char *)NULL);
if (ret != MM_ERROR_NONE)
{
player_s *handle = (player_s *)player;
int ret = MM_ERROR_NONE;
- LOGI("[%s] rate : %0.1f", __FUNCTION__, rate);
+ LOGI("<ENTER: rate %0.1f>", rate);
PLAYER_INSTANCE_CHECK(player);
PLAYER_CHECK_CONDITION(rate >= -5.0 && rate <= 5.0, PLAYER_ERROR_INVALID_PARAMETER, "PLAYER_ERROR_INVALID_PARAMETER");
if (!__player_state_validate(handle, PLAYER_STATE_READY)) {
- LOGE("[%s] PLAYER_ERROR_INVALID_STATE(0x%08x) : current state - %d", __FUNCTION__, PLAYER_ERROR_INVALID_STATE, handle->state);
+ LOGE("PLAYER_ERROR_INVALID_STATE : current state - %d", handle->state);
return PLAYER_ERROR_INVALID_STATE;
}
break;
case MM_ERROR_NOT_SUPPORT_API:
case MM_ERROR_PLAYER_SEEK:
- LOGE("[%s] PLAYER_ERROR_INVALID_OPERATION(0x%08x) : seek error", __FUNCTION__, PLAYER_ERROR_INVALID_OPERATION);
+ LOGE("PLAYER_ERROR_INVALID_OPERATION : seek error");
ret = PLAYER_ERROR_INVALID_OPERATION;
break;
default:
PLAYER_NULL_ARG_CHECK(value);
if (!__player_state_validate(handle, PLAYER_STATE_READY)) {
- LOGE("[%s] PLAYER_ERROR_INVALID_STATE (0x%08x) : current state - %d", __FUNCTION__, PLAYER_ERROR_INVALID_STATE, handle->state);
+ LOGE("PLAYER_ERROR_INVALID_STATE : current state - %d", handle->state);
return PLAYER_ERROR_INVALID_STATE;
}
*value = strndup("", 0);
if (*value == NULL) {
- LOGE("[%s] PLAYER_ERROR_OUT_OF_MEMORY(0x%08x) : fail to strdup ", __FUNCTION__, PLAYER_ERROR_OUT_OF_MEMORY);
+ LOGE("PLAYER_ERROR_OUT_OF_MEMORY : fail to strdup");
return PLAYER_ERROR_OUT_OF_MEMORY;
}
PLAYER_NULL_ARG_CHECK(video_codec);
if (!__player_state_validate(handle, PLAYER_STATE_READY)) {
- LOGE("[%s] PLAYER_ERROR_INVALID_STATE (0x%08x) : current state - %d", __FUNCTION__, PLAYER_ERROR_INVALID_STATE, handle->state);
+ LOGE("PLAYER_ERROR_INVALID_STATE : current state - %d", handle->state);
return PLAYER_ERROR_INVALID_STATE;
}
PLAYER_NULL_ARG_CHECK(bit_rate);
if (!__player_state_validate(handle, PLAYER_STATE_READY)) {
- LOGE("[%s] PLAYER_ERROR_INVALID_STATE (0x%08x) : current state - %d", __FUNCTION__, PLAYER_ERROR_INVALID_STATE, handle->state);
+ LOGE("PLAYER_ERROR_INVALID_STATE : current state - %d", handle->state);
return PLAYER_ERROR_INVALID_STATE;
}
ret = mm_player_get_attribute(handle->mm_handle, NULL, MM_PLAYER_AUDIO_SAMPLERATE, sample_rate, MM_PLAYER_AUDIO_CHANNEL, channel, MM_PLAYER_AUDIO_BITRATE, bit_rate, (char *)NULL);
PLAYER_NULL_ARG_CHECK(bit_rate);
if (!__player_state_validate(handle, PLAYER_STATE_READY)) {
- LOGE("[%s] PLAYER_ERROR_INVALID_STATE (0x%08x) : current state - %d", __FUNCTION__, PLAYER_ERROR_INVALID_STATE, handle->state);
+ LOGE("PLAYER_ERROR_INVALID_STATE : current state - %d", handle->state);
return PLAYER_ERROR_INVALID_STATE;
}
ret = mm_player_get_attribute(handle->mm_handle, NULL, "content_video_fps", fps, "content_video_bitrate", bit_rate, (char *)NULL);
PLAYER_NULL_ARG_CHECK(width);
PLAYER_NULL_ARG_CHECK(height);
if (!__player_state_validate(handle, PLAYER_STATE_READY)) {
- LOGE("[%s] PLAYER_ERROR_INVALID_STATE (0x%08x) : current state - %d", __FUNCTION__, PLAYER_ERROR_INVALID_STATE, handle->state);
+ LOGE("PLAYER_ERROR_INVALID_STATE : current state - %d", handle->state);
return PLAYER_ERROR_INVALID_STATE;
}
ret = mm_player_get_attribute(handle->mm_handle, NULL, MM_PLAYER_VIDEO_WIDTH, &w, MM_PLAYER_VIDEO_HEIGHT, &h, (char *)NULL);
*width = w;
*height = h;
- LOGI("[%s] width : %d, height : %d", __FUNCTION__, w, h);
+ LOGI("width : %d, height : %d", w, h);
return PLAYER_ERROR_NONE;
}
PLAYER_INSTANCE_CHECK(player);
PLAYER_NULL_ARG_CHECK(size);
if (!__player_state_validate(handle, PLAYER_STATE_READY)) {
- LOGE("[%s] PLAYER_ERROR_INVALID_STATE (0x%08x) : current state - %d", __FUNCTION__, PLAYER_ERROR_INVALID_STATE, handle->state);
+ LOGE("PLAYER_ERROR_INVALID_STATE : current state - %d", handle->state);
return PLAYER_ERROR_INVALID_STATE;
}
PLAYER_INSTANCE_CHECK(player);
PLAYER_NULL_ARG_CHECK(available);
if (!__player_state_validate(handle, PLAYER_STATE_IDLE)) {
- LOGE("[%s] PLAYER_ERROR_INVALID_STATE(0x%08x) : current state - %d", __FUNCTION__, PLAYER_ERROR_INVALID_STATE, handle->state);
+ LOGE("PLAYER_ERROR_INVALID_STATE : current state - %d", handle->state);
return PLAYER_ERROR_INVALID_STATE;
}
{
player_s *handle = (player_s *)player;
int ret = MM_ERROR_NONE;
+
+ LPLAYER_FENTER();
PLAYER_INSTANCE_CHECK(player);
if ((path == NULL) && (handle->state != PLAYER_STATE_IDLE))
if (ret != MM_ERROR_NONE)
return __player_convert_error_code(ret, (char *)__FUNCTION__);
+ LPLAYER_FLEAVE();
return PLAYER_ERROR_NONE;
}
int ret = MM_ERROR_NONE;
PLAYER_INSTANCE_CHECK(player);
if (!__player_state_validate(handle, PLAYER_STATE_PLAYING)) {
- LOGE("[%s] PLAYER_ERROR_INVALID_STATE(0x%08x) : current state - %d", __FUNCTION__, PLAYER_ERROR_INVALID_STATE, handle->state);
+ LOGE("PLAYER_ERROR_INVALID_STATE : current state - %d", handle->state);
return PLAYER_ERROR_INVALID_STATE;
}
{
player_s *handle = (player_s *)player;
int ret = MM_ERROR_NONE;
+
+ LPLAYER_FENTER();
PLAYER_INSTANCE_CHECK(player);
PLAYER_NULL_ARG_CHECK(callback);
if (handle->user_cb[MUSE_PLAYER_EVENT_TYPE_CAPTURE]) {
- LOGE("[%s] PLAYER_ERROR_VIDEO_CAPTURE_FAILED (0x%08x) : capturing... we can't do any more ", __FUNCTION__, PLAYER_ERROR_VIDEO_CAPTURE_FAILED);
+ LOGE("previous capturing request is in processing.");
return PLAYER_ERROR_VIDEO_CAPTURE_FAILED;
}
- LOGI("[%s] Event type : %d ", __FUNCTION__, MUSE_PLAYER_EVENT_TYPE_CAPTURE);
+ LOGI("Event type : %d ", MUSE_PLAYER_EVENT_TYPE_CAPTURE);
handle->user_cb[MUSE_PLAYER_EVENT_TYPE_CAPTURE] = callback;
handle->user_data[MUSE_PLAYER_EVENT_TYPE_CAPTURE] = user_data;
if (ret == MM_ERROR_PLAYER_NO_OP) {
handle->user_cb[MUSE_PLAYER_EVENT_TYPE_CAPTURE] = NULL;
handle->user_data[MUSE_PLAYER_EVENT_TYPE_CAPTURE] = NULL;
- LOGE("[%s] PLAYER_ERROR_INVALID_OPERATION (0x%08x) : video display must be set : %d", __FUNCTION__, PLAYER_ERROR_INVALID_OPERATION, handle->display_type);
+ LOGE("PLAYER_ERROR_INVALID_OPERATION : video display must be set : %d", handle->display_type);
return PLAYER_ERROR_INVALID_OPERATION;
}
if (ret != MM_ERROR_NONE) {
return PLAYER_ERROR_NONE;
}
- LOGE("[%s] PLAYER_ERROR_INVALID_STATE (0x%08x) : current state - %d", __FUNCTION__, PLAYER_ERROR_INVALID_STATE, handle->state);
+ LOGE("PLAYER_ERROR_INVALID_STATE : current state - %d", handle->state);
handle->user_cb[MUSE_PLAYER_EVENT_TYPE_CAPTURE] = NULL;
handle->user_data[MUSE_PLAYER_EVENT_TYPE_CAPTURE] = NULL;
+
+ LPLAYER_FLEAVE();
return PLAYER_ERROR_INVALID_STATE;
}
int ret = MM_ERROR_NONE;
muse_player_event_e event_type = MUSE_PLAYER_EVENT_TYPE_VIDEO_STREAM_CHANGED;
- LOGE("[%s] event type %d", __FUNCTION__, event_type);
+ LOGE("event type %d", event_type);
if (handle->user_cb[event_type]) {
int width = 0, height = 0, fps = 0, bit_rate = 0;
"content_video_bitrate", &bit_rate, (char *)NULL);
if (ret != MM_ERROR_NONE) {
- LOGE("[%s] get attr is failed", __FUNCTION__);
+ LOGE("get attr is failed");
return false;
}
((player_video_stream_changed_cb)handle->user_cb[event_type])(width, height, fps, bit_rate, handle->user_data[event_type]);
return true;
}
- LOGE("[%s] video stream changed cb was not set.", __FUNCTION__);
+ LOGE("video stream changed cb was not set.");
return false;
}
else
return false;
- LOGE("[%s] event type %d", __FUNCTION__, event_type);
+ LOGE("event type %d", event_type);
if (handle->user_cb[event_type]) {
((player_media_stream_buffer_status_cb)handle->user_cb[event_type])(status, handle->user_data[event_type]);
} else {
- LOGE("[%s][type:%d] buffer status cb was not set.", __FUNCTION__, type);
+ LOGE("[type:%d] buffer status cb was not set.", type);
return false;
}
else
return false;
- LOGE("[%s] event type %d", __FUNCTION__, event_type);
+ LOGE("event type %d", event_type);
if (handle->user_cb[event_type]) {
((player_media_stream_seek_cb)handle->user_cb[event_type])(offset, handle->user_data[event_type]);
} else {
- LOGE("[%s][type:%d] seek cb was not set.", __FUNCTION__, type);
+ LOGE("[type:%d] seek cb was not set.", type);
return false;
}
/* the type can be expaned with default and text. */
if ((type != PLAYER_STREAM_TYPE_VIDEO) && (type != PLAYER_STREAM_TYPE_AUDIO)) {
- LOGE("[%s] PLAYER_ERROR_INVALID_PARAMETER(type : %d)", __FUNCTION__, type);
+ LOGE("PLAYER_ERROR_INVALID_PARAMETER(type : %d)", type);
return PLAYER_ERROR_INVALID_PARAMETER;
}
/* the type can be expaned with default and text. */
if ((type != PLAYER_STREAM_TYPE_VIDEO) && (type != PLAYER_STREAM_TYPE_AUDIO)) {
- LOGE("[%s] PLAYER_ERROR_INVALID_PARAMETER(type : %d)", __FUNCTION__, type);
+ LOGE("PLAYER_ERROR_INVALID_PARAMETER(type : %d)", type);
return PLAYER_ERROR_INVALID_PARAMETER;
}
int ret = MM_ERROR_NONE;
PLAYER_INSTANCE_CHECK(player);
if (!__player_state_validate(handle, PLAYER_STATE_IDLE)) {
- LOGE("[%s] PLAYER_ERROR_INVALID_STATE(0x%08x) : current state - %d", __FUNCTION__, PLAYER_ERROR_INVALID_STATE, handle->state);
+ LOGE("PLAYER_ERROR_INVALID_STATE : current state - %d", handle->state);
return PLAYER_ERROR_INVALID_STATE;
}
int ret = MM_ERROR_NONE;
PLAYER_INSTANCE_CHECK(player);
if (!__player_state_validate(handle, PLAYER_STATE_IDLE)) {
- LOGE("[%s] PLAYER_ERROR_INVALID_STATE(0x%08x) : current state - %d", __FUNCTION__, PLAYER_ERROR_INVALID_STATE, handle->state);
+ LOGE("PLAYER_ERROR_INVALID_STATE : current state - %d", handle->state);
return PLAYER_ERROR_INVALID_STATE;
}
PLAYER_NULL_ARG_CHECK(count);
if (!__player_state_validate(handle, PLAYER_STATE_READY)) {
- LOGE("[%s] PLAYER_ERROR_INVALID_STATE (0x%08x) : current state - %d", __FUNCTION__, PLAYER_ERROR_INVALID_STATE, handle->state);
+ LOGE("PLAYER_ERROR_INVALID_STATE : current state - %d", handle->state);
return PLAYER_ERROR_INVALID_STATE;
}
PLAYER_INSTANCE_CHECK(player);
PLAYER_NULL_ARG_CHECK(index);
if (!__player_state_validate(handle, PLAYER_STATE_READY)) {
- LOGE("[%s] PLAYER_ERROR_INVALID_STATE (0x%08x) : current state - %d", __FUNCTION__, PLAYER_ERROR_INVALID_STATE, handle->state);
+ LOGE("PLAYER_ERROR_INVALID_STATE : current state - %d", handle->state);
return PLAYER_ERROR_INVALID_STATE;
}
player_s *handle = (player_s *)player;
int ret = MM_ERROR_NONE;
MMPlayerTrackType track_type = 0;
+
+ LPLAYER_FENTER();
PLAYER_INSTANCE_CHECK(player);
PLAYER_CHECK_CONDITION(index >= 0, PLAYER_ERROR_INVALID_PARAMETER, "PLAYER_ERROR_INVALID_PARAMETER");
if (!__player_state_validate(handle, PLAYER_STATE_READY)) {
- LOGE("[%s] PLAYER_ERROR_INVALID_STATE (0x%08x) : current state - %d", __FUNCTION__, PLAYER_ERROR_INVALID_STATE, handle->state);
+ LOGE("PLAYER_ERROR_INVALID_STATE : current state - %d", handle->state);
return PLAYER_ERROR_INVALID_STATE;
}
if (ret != MM_ERROR_NONE)
return __player_convert_error_code(ret, (char *)__FUNCTION__);
+ LPLAYER_FLEAVE();
return PLAYER_ERROR_NONE;
}
PLAYER_NULL_ARG_CHECK(code);
PLAYER_NULL_ARG_CHECK(len);
if (!__player_state_validate(handle, PLAYER_STATE_READY)) {
- LOGE("[%s] PLAYER_ERROR_INVALID_STATE (0x%08x) : current state - %d", __FUNCTION__, PLAYER_ERROR_INVALID_STATE, handle->state);
+ LOGE("PLAYER_ERROR_INVALID_STATE : current state - %d", handle->state);
return PLAYER_ERROR_INVALID_STATE;
}
MMDisplaySurfaceType mmType = __player_convert_display_type(type);
PLAYER_INSTANCE_CHECK(player);
if (!__player_state_validate(handle, PLAYER_STATE_IDLE)) {
- LOGE("[%s] PLAYER_ERROR_INVALID_STATE(0x%08x) : current state - %d", __FUNCTION__, PLAYER_ERROR_INVALID_STATE, handle->state);
+ LOGE("PLAYER_ERROR_INVALID_STATE : current state - %d", handle->state);
return PLAYER_ERROR_INVALID_STATE;
}
PLAYER_NULL_ARG_CHECK(var_info);
if (!__player_state_validate(handle, PLAYER_STATE_READY)) {
- LOGE("[%s] PLAYER_ERROR_INVALID_STATE(0x%08x) : current state - %d", __FUNCTION__, PLAYER_ERROR_INVALID_STATE, handle->state);
+ LOGE("PLAYER_ERROR_INVALID_STATE : current state - %d", handle->state);
return PLAYER_ERROR_INVALID_STATE;
}
PLAYER_INSTANCE_CHECK(player);
if (!__player_state_validate(handle, PLAYER_STATE_READY)) {
- LOGE("[%s] PLAYER_ERROR_INVALID_STATE (0x%08x) : current state - %d", __FUNCTION__, PLAYER_ERROR_INVALID_STATE, handle->state);
+ LOGE("PLAYER_ERROR_INVALID_STATE : current state - %d", handle->state);
return PLAYER_ERROR_INVALID_STATE;
}
PLAYER_NULL_ARG_CHECK(rebuffer_ms);
if (!__player_state_validate(handle, PLAYER_STATE_IDLE)) {
- LOGE("[%s] PLAYER_ERROR_INVALID_STATE (0x%08x) : current state - %d", __FUNCTION__, PLAYER_ERROR_INVALID_STATE, handle->state);
+ LOGE("PLAYER_ERROR_INVALID_STATE : current state - %d", handle->state);
return PLAYER_ERROR_INVALID_STATE;
}
PLAYER_NULL_ARG_CHECK(is_spherical);
if (!__player_state_validate(handle, PLAYER_STATE_READY)) {
- LOGE("PLAYER_ERROR_INVALID_STATE (0x%08x) : current state - %d", PLAYER_ERROR_INVALID_STATE, handle->state);
+ LOGE("PLAYER_ERROR_INVALID_STATE : current state - %d", handle->state);
return PLAYER_ERROR_INVALID_STATE;
}
PLAYER_INSTANCE_CHECK(player);
if (!__player_state_validate(handle, PLAYER_STATE_IDLE)) {
- LOGE("PLAYER_ERROR_INVALID_STATE (0x%08x) : current state - %d", PLAYER_ERROR_INVALID_STATE, handle->state);
+ LOGE("PLAYER_ERROR_INVALID_STATE : current state - %d", handle->state);
return PLAYER_ERROR_INVALID_STATE;
}
PLAYER_INSTANCE_CHECK(player);
PLAYER_NULL_ARG_CHECK(enabled);
if (!__player_state_validate(handle, PLAYER_STATE_IDLE)) {
- LOGE("PLAYER_ERROR_INVALID_STATE (0x%08x) : current state - %d", PLAYER_ERROR_INVALID_STATE, handle->state);
+ LOGE("PLAYER_ERROR_INVALID_STATE : current state - %d", handle->state);
return PLAYER_ERROR_INVALID_STATE;
}
PLAYER_INSTANCE_CHECK(player);
if (!__player_state_validate(handle, PLAYER_STATE_IDLE)) {
- LOGE("PLAYER_ERROR_INVALID_STATE (0x%08x) : current state - %d", PLAYER_ERROR_INVALID_STATE, handle->state);
+ LOGE("PLAYER_ERROR_INVALID_STATE : current state - %d", handle->state);
return PLAYER_ERROR_INVALID_STATE;
}
PLAYER_NULL_ARG_CHECK(pitch);
if (!__player_state_validate(handle, PLAYER_STATE_IDLE)) {
- LOGE("PLAYER_ERROR_INVALID_STATE (0x%08x) : current state - %d", PLAYER_ERROR_INVALID_STATE, handle->state);
+ LOGE("PLAYER_ERROR_INVALID_STATE : current state - %d", handle->state);
return PLAYER_ERROR_INVALID_STATE;
}
PLAYER_INSTANCE_CHECK(player);
if (!__player_state_validate(handle, PLAYER_STATE_IDLE)) {
- LOGE("PLAYER_ERROR_INVALID_STATE (0x%08x) : current state - %d", PLAYER_ERROR_INVALID_STATE, handle->state);
+ LOGE("PLAYER_ERROR_INVALID_STATE : current state - %d", handle->state);
return PLAYER_ERROR_INVALID_STATE;
}
PLAYER_INSTANCE_CHECK(player);
if (!__player_state_validate(handle, PLAYER_STATE_IDLE)) {
- LOGE("PLAYER_ERROR_INVALID_STATE (0x%08x) : current state - %d", PLAYER_ERROR_INVALID_STATE, handle->state);
+ LOGE("PLAYER_ERROR_INVALID_STATE : current state - %d", handle->state);
return PLAYER_ERROR_INVALID_STATE;
}
PLAYER_INSTANCE_CHECK(player);
if (!__player_state_validate(handle, PLAYER_STATE_IDLE)) {
- LOGE("PLAYER_ERROR_INVALID_STATE (0x%08x) : current state - %d", PLAYER_ERROR_INVALID_STATE, handle->state);
+ LOGE("PLAYER_ERROR_INVALID_STATE : current state - %d", handle->state);
return PLAYER_ERROR_INVALID_STATE;
}
PLAYER_NULL_ARG_CHECK(vertical_degrees);
if (!__player_state_validate(handle, PLAYER_STATE_IDLE)) {
- LOGE("PLAYER_ERROR_INVALID_STATE (0x%08x) : current state - %d", PLAYER_ERROR_INVALID_STATE, handle->state);
+ LOGE("PLAYER_ERROR_INVALID_STATE : current state - %d", handle->state);
return PLAYER_ERROR_INVALID_STATE;
}
PLAYER_INSTANCE_CHECK(player);
if (!__player_state_validate(handle, PLAYER_STATE_IDLE)) {
- LOGE("PLAYER_ERROR_INVALID_STATE (0x%08x) : current state - %d", PLAYER_ERROR_INVALID_STATE, handle->state);
+ LOGE("PLAYER_ERROR_INVALID_STATE : current state - %d", handle->state);
return PLAYER_ERROR_INVALID_STATE;
}
PLAYER_NULL_ARG_CHECK(enabled);
if (!__player_state_validate(handle, PLAYER_STATE_IDLE)) {
- LOGE("PLAYER_ERROR_INVALID_STATE (0x%08x) : current state - %d", PLAYER_ERROR_INVALID_STATE, handle->state);
+ LOGE("PLAYER_ERROR_INVALID_STATE : current state - %d", handle->state);
return PLAYER_ERROR_INVALID_STATE;
}