snd_len = muse_core_ipc_send_msg(fin_data->fd, snd_msg);
muse_core_msg_json_factory_free(snd_msg);
- if (snd_len <= 0) {
+ if (snd_len <= 0)
LOGE("fail to send msg.");
- }
EXIT:
if (fin_data) {
case MUSE_PLAYER_API_START:
case MUSE_PLAYER_API_STOP:
case MUSE_PLAYER_API_PAUSE:
- timeout += SERVER_TIMEOUT(pc) * G_TIME_SPAN_MILLISECOND;
+ timeout += SERVER_TIMEOUT(pc);
break;
default:
/* check prepare async is done */
if (pc && CALLBACK_INFO(pc) && CALLBACK_INFO(pc)->user_cb[MUSE_PLAYER_EVENT_TYPE_PREPARE])
- timeout += SERVER_TIMEOUT(pc) * G_TIME_SPAN_MILLISECOND;
+ timeout += SERVER_TIMEOUT(pc);
break;
}
timeout += CALLBACK_TIME_OUT;
int timeout = 0;
player_msg_get_type(timeout, ret_buf, INT);
- LOGD("server timeout will be %ds", timeout);
+ LOGD("server timeout will be %d sec", timeout);
SERVER_TIMEOUT(pc) = timeout * G_TIME_SPAN_MILLISECOND;
}
int timeout = 0;
player_msg_get_type(timeout, ret_buf, INT);
- LOGD("server timeout will be %ds", timeout);
+ LOGD("server timeout will be %d sec", timeout);
SERVER_TIMEOUT(pc) = timeout * G_TIME_SPAN_MILLISECOND;
}
g_print("player_get_progressive_download_status return[%d] ==> [Player_Test] progressive download status : %lu/%lu\n", bRet, curr, total);
}
+static void _player_enable_tsurf_pool(void)
+{
+ bool enabled = FALSE;
+ player_is_enabled_tsurf_pool(g_player[0], &enabled);
+
+ g_print("tbm surface pool will be %s", (enabled) ? "disabled" : "enabled");
+ player_enable_tsurf_pool(g_player[0], !enabled);
+}
+
static void set_next_uri(char * uri)
{
#ifndef TIZEN_TV
audio_frame_decoded_cb_ex(TRUE);
} else if (strncmp(cmd, "X4", 2) == 0) {
audio_frame_decoded_cb_ex(FALSE);
+ } else if (strncmp(cmd, "ep", 2) == 0) {
+ _player_enable_tsurf_pool();
} else if (strncmp(cmd, "su", 2) == 0) {
g_menu_state = CURRENT_STATUS_NEXT_URI;
} else if (strncmp(cmd, "gu", 2) == 0) {
g_print("[ volume ] f. Set Volume\t");
g_print("g. Get Volume\t");
g_print("z. Set Sound type\t");
- g_print("k. Set Sound Stream Info.\t");
+ g_print("k. Set Sound Stream Info.\n");
g_print("[ mute ] h. Set Mute\t");
g_print("i. Get Mute\n");
g_print("[audio eq] E. Set Audio EQ\t");
g_print("[display] ds. Change display surface type\n");
g_print("[overlay display] r. Set display mode\t");
g_print("s. Get display mode\n");
- g_print("[overlay display] t. Set display Rotation\t");
+ g_print("[overlay display] t. Set display Rotation\n");
g_print("[Track] tl. Get Track language info(single only)\n");
g_print("[subtitle] A. Set(or change) subtitle path\n");
g_print("[subtitle] ss. Select(or change) subtitle track\n");
g_print("[next uri] su. set next uri. \t");
g_print("gu. get next uri. \t");
g_print("sg. set gapless. \n");
- g_print("[etc] sp. Set Progressive Download\t");
- g_print("gp. Get Progressive Download status\n");
- g_print("mp. memory playback\n");
g_print("[audio_frame_decoded_cb_ex] X3. set audio_cb with sync\t");
g_print("X4. set audio_cb with async \n");
+ g_print("[video_frame_decoded_cb] ep. enable tbm surface pool\n");
+ g_print("[etc] sp. Set Progressive Download\t");
+ g_print("gp. Get Progressive Download status\t");
+ g_print("mp. memory playback\n");
g_print("\n");
g_print("=========================================================================================\n");
}