优化完善代码

This commit is contained in:
ziyue
2021-08-12 20:55:11 +08:00
parent 4dbe0a1d3e
commit 7b60f8b093
2 changed files with 3 additions and 5 deletions

View File

@@ -309,11 +309,9 @@ API_EXPORT float API_CALL mk_player_progress(mk_player ctx) {
return obj->getProgress();
}
API_EXPORT int API_CALL mk_player_progress_pos(mk_player ctx)
{
API_EXPORT int API_CALL mk_player_progress_pos(mk_player ctx) {
assert(ctx);
MediaPlayerForC& obj = **((MediaPlayerForC::Ptr*)ctx);
MediaPlayerForC &obj = **((MediaPlayerForC::Ptr *) ctx);
return obj->getProgressPos();
}