Skip to content

Commit

Permalink
fix(supermediaplayer): fix report error logic
Browse files Browse the repository at this point in the history
cur_buffer_duration can >0 always after buffering when the network is bad.
So the error will not be support forever when there is a network error(eg. time out)

Signed-off-by: pingkai <pingkai010@gmail.com>
  • Loading branch information
pingkai committed Apr 21, 2020
1 parent d6b95e8 commit ae1b38e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mediaPlayer/SuperMediaPlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1228,7 +1228,7 @@ namespace Cicada {
AF_LOGW("read error %s\n", framework_err2_string(ret));
break;
} else if (ret < 0) {
if (cur_buffer_duration > 0) {
if (!mBufferingFlag) {
//AF_LOGI("Player ReadPacket ret < 0 with data");
} else {
AF_LOGE("Player ReadPacket error 0x%04x :%s\n", -ret, framework_err2_string(ret));
Expand Down

0 comments on commit ae1b38e

Please sign in to comment.