Merge pull request #1537 from alexliyu7352/alexliyu7352-patch-19

修复HlsPlayer播放器BUG
This commit is contained in:
夏楚 2022-04-03 17:33:38 +08:00 committed by GitHub
commit 7ed8429759
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -121,6 +121,11 @@ void PlayerProxy::setDirectProxy() {
PlayerProxy::~PlayerProxy() {
_timer.reset();
// 避免析构时, 忘记回调api请求
if(_on_play) {
_on_play(SockException(Err_shutdown, "player proxy close"));
_on_play = nullptr;
}
}
void PlayerProxy::rePlay(const string &strUrl, int iFailedCnt) {