Ecore_Wl_Window *wl_window = NULL;
Evas *e;
player_private_display_type_e conv_type;
+ player_state_e state = PLAYER_STATE_NONE;
/* init */
wl_win.wl_window_x = 0;
LOGW("DEPRECATION WARNING: display type(%d) is deprecated and will be removed from next release. Use newly defined type value instead.", type);
}
+ player_msg_send(MUSE_PLAYER_API_GET_STATE, pc, ret_buf, ret);
+
+ /* check player state */
+ if (ret == PLAYER_ERROR_NONE) {
+ player_msg_get(state, ret_buf);
+ g_free(ret_buf);
+ ret_buf = NULL;
+
+ if (state > PLAYER_STATE_IDLE) {
+ LOGE("Invalid state %d", state);
+ return PLAYER_ERROR_INVALID_STATE;
+ }
+ } else {
+ g_free(ret_buf);
+ ret_buf = NULL;
+ return PLAYER_ERROR_INVALID_OPERATION;
+ }
+
ret = _player_convert_display_type(type, &conv_type);
if (ret != PLAYER_ERROR_NONE)
return ret;