From aa9bd56c5a79f0bc804b99b7797672dd9d0ac015 Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Mon, 27 Apr 2020 09:18:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=9E=E8=B0=83=E5=8F=AF=E4=BB=A5=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E7=A9=BA=E6=8C=87=E9=92=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/source/mk_player.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/source/mk_player.cpp b/api/source/mk_player.cpp index f4b6bf7c..a3dd4b9f 100755 --- a/api/source/mk_player.cpp +++ b/api/source/mk_player.cpp @@ -178,7 +178,7 @@ API_EXPORT void API_CALL mk_player_seekto(mk_player ctx, float progress) { } static void mk_player_set_on_event(mk_player ctx, on_mk_play_event cb, void *user_data, int type) { - assert(ctx && cb); + assert(ctx); MediaPlayerForC &obj = **((MediaPlayerForC::Ptr *)ctx); obj.setOnEvent(cb,user_data, type); } @@ -192,7 +192,7 @@ API_EXPORT void API_CALL mk_player_set_on_shutdown(mk_player ctx, on_mk_play_eve } API_EXPORT void API_CALL mk_player_set_on_data(mk_player ctx, on_mk_play_data cb, void *user_data) { - assert(ctx && cb); + assert(ctx); MediaPlayerForC &obj = **((MediaPlayerForC::Ptr *)ctx); obj.setOnData(cb,user_data); }