From 5de7eaf043374f625b8cd6038d5455173061808e Mon Sep 17 00:00:00 2001 From: lupeng Date: Tue, 25 Sep 2018 16:14:41 +0800 Subject: [PATCH] [ihwplayer] add tplayer ntf status handle. forbid too match logs and crash. --- package/netease/ihw_player/src/libplayer/audioplayer.cpp | 3 ++- package/netease/ihw_player/src/libplayer/background.cpp | 3 ++- package/netease/ihw_player/src/libplayer/musicplayer.cpp | 3 ++- package/netease/ihw_player/src/libplayer/soundeffect.cpp | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/package/netease/ihw_player/src/libplayer/audioplayer.cpp b/package/netease/ihw_player/src/libplayer/audioplayer.cpp index af6ae9e91..cddd76c8c 100755 --- a/package/netease/ihw_player/src/libplayer/audioplayer.cpp +++ b/package/netease/ihw_player/src/libplayer/audioplayer.cpp @@ -889,7 +889,8 @@ static int callbackForTinaPlayer(void* pUserData, int msg, int param0, void* par LOG_EX(LOG_Debug, "TINA_NOTIFY_SEEK_COMPLETE\n"); break; } - + case TPLAYER_NOTIFY_AUDIO_FRAME: + break; default: { // todo: 跟踪会不会走到该分支 diff --git a/package/netease/ihw_player/src/libplayer/background.cpp b/package/netease/ihw_player/src/libplayer/background.cpp index e6d5c3a5a..82b3c89a2 100755 --- a/package/netease/ihw_player/src/libplayer/background.cpp +++ b/package/netease/ihw_player/src/libplayer/background.cpp @@ -123,7 +123,8 @@ static int callbackForTinaPlayer(void* pUserData, int msg, int param0, void* par break; } - + case TPLAYER_NOTIFY_AUDIO_FRAME: + break; default: { LOG_EX(LOG_Debug, "warning: unknown callback from Tinaplayer. msg: %d\n",msg); diff --git a/package/netease/ihw_player/src/libplayer/musicplayer.cpp b/package/netease/ihw_player/src/libplayer/musicplayer.cpp index f4fa6e692..61615318b 100755 --- a/package/netease/ihw_player/src/libplayer/musicplayer.cpp +++ b/package/netease/ihw_player/src/libplayer/musicplayer.cpp @@ -701,7 +701,8 @@ static int callbackForTinaPlayer(void* pUserData, int msg, int param0, void* par LOG_EX(LOG_Debug, "TINA_NOTIFY_BUFFER_END\n"); break; } - + case TPLAYER_NOTIFY_AUDIO_FRAME: + break; default: { LOG_EX(LOG_Debug, "warning: unknown callback from Tinaplayer. msg:%d\n", msg); diff --git a/package/netease/ihw_player/src/libplayer/soundeffect.cpp b/package/netease/ihw_player/src/libplayer/soundeffect.cpp index ccd261f95..db52fce84 100755 --- a/package/netease/ihw_player/src/libplayer/soundeffect.cpp +++ b/package/netease/ihw_player/src/libplayer/soundeffect.cpp @@ -152,7 +152,8 @@ static int callbackForTinaPlayer(void* pUserData, int msg, int param0, void* par LOG_EX(LOG_Debug, "TINA_NOTIFY_SEEK_COMPLETE\n"); break; } - + case TPLAYER_NOTIFY_AUDIO_FRAME: + break; default: { LOG_EX(LOG_Debug, "warning: unknown callback from Tinaplayer. msg: d%\n", msg);