PLAYER_NULL_ARG_CHECK(state);
player_s *handle = (player_s *)player;
*state = handle->state;
- MMPlayerStateType currentStat = MM_PLAYER_STATE_NULL;
- mm_player_get_state(handle->mm_handle, ¤tStat);
- /* LOGI("[%s] State : %d (FW state : %d)", __FUNCTION__,handle->state, currentStat); */
return PLAYER_ERROR_NONE;
}
PLAYER_INSTANCE_CHECK(player);
player_s *handle = (player_s *)player;
int ret;
- if (handle->state == PLAYER_STATE_READY || handle->state == PLAYER_STATE_PAUSED) {
+ 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)