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);
/* 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);
}
}
return FALSE;
}
- LOGD("enter ev:%d", data->int_data);
+ /* LOGD("enter ev:%d", data->int_data); */
g_mutex_lock(&data->event_mutex);
/* 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);
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]) {
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 {
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)