mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-13 03:31:45 +08:00
Merge pull request #1537 from alexliyu7352/alexliyu7352-patch-19
修复HlsPlayer播放器BUG
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user