LOGE("[%s] PLAYER_ERROR_INVALID_STATE(0x%08x) : current state - %d" ,__FUNCTION__,PLAYER_ERROR_INVALID_STATE, handle->state);
return PLAYER_ERROR_INVALID_STATE;
}
- int pos;
+ unsigned long pos;
int ret = mm_player_get_position(handle->mm_handle, MM_PLAYER_POS_FORMAT_TIME , &pos);
if(ret != MM_ERROR_NONE)
{
}
else
{
- *millisecond = pos;
+ *millisecond = (int)pos;
return PLAYER_ERROR_NONE;
}
}
LOGE("[%s] PLAYER_ERROR_INVALID_STATE(0x%08x) : current state - %d" ,__FUNCTION__,PLAYER_ERROR_INVALID_STATE, handle->state);
return PLAYER_ERROR_INVALID_STATE;
}
- int _current=0;
- int _start=0;
+ unsigned long _current=0;
+ unsigned long _start=0;
int ret = mm_player_get_buffer_position(handle->mm_handle,MM_PLAYER_POS_FORMAT_PERCENT,&_start,&_current);
if(ret != MM_ERROR_NONE)
{
}
else
{
- *start = _start;
- *current = _current;
+ *start = (int)_start;
+ *current = (int)_current;
return PLAYER_ERROR_NONE;
}
}