mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-14 12:05:58 +08:00
完善c sdk对象描述元信息,防止隐式指针转换错误
void* 类型指针很容易存在隐式转换错误,用户无法察觉
This commit is contained in:
@@ -105,7 +105,7 @@ private:
|
||||
API_EXPORT mk_player API_CALL mk_player_create() {
|
||||
MediaPlayerForC::Ptr *obj = new MediaPlayerForC::Ptr(new MediaPlayerForC());
|
||||
(*obj)->setup();
|
||||
return obj;
|
||||
return (mk_player)obj;
|
||||
}
|
||||
API_EXPORT void API_CALL mk_player_release(mk_player ctx) {
|
||||
assert(ctx);
|
||||
|
||||
Reference in New Issue
Block a user