mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-29 14:45:55 +08:00
Merge pull request #1537 from alexliyu7352/alexliyu7352-patch-19
修复HlsPlayer播放器BUG
This commit is contained in:
commit
7ed8429759
@ -121,6 +121,11 @@ void PlayerProxy::setDirectProxy() {
|
|||||||
|
|
||||||
PlayerProxy::~PlayerProxy() {
|
PlayerProxy::~PlayerProxy() {
|
||||||
_timer.reset();
|
_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) {
|
void PlayerProxy::rePlay(const string &strUrl, int iFailedCnt) {
|
||||||
|
Loading…
Reference in New Issue
Block a user