兼容gcc4.8编译器

This commit is contained in:
ziyue 2022-05-18 20:07:54 +08:00
parent 6cab65f7b0
commit c7d7999f53
2 changed files with 4 additions and 2 deletions

View File

@ -383,7 +383,8 @@ void HlsPlayerImp::onShutdown(const SockException &ex) {
static_pointer_cast<HlsDemuxer>(_demuxer)->pushTask([weak_self, ex]() {
auto strong_self = weak_self.lock();
if (strong_self) {
strong_self->PlayerImp<HlsPlayer, PlayerBase>::onShutdown(ex);
strong_self->_demuxer = nullptr;
strong_self->onShutdown(ex);
}
});
} else {

View File

@ -50,7 +50,8 @@ void TsPlayerImp::onShutdown(const SockException &ex) {
static_pointer_cast<HlsDemuxer>(_demuxer)->pushTask([weak_self, ex]() {
auto strong_self = weak_self.lock();
if (strong_self) {
strong_self->PlayerImp<TsPlayer, PlayerBase>::onShutdown(ex);
strong_self->_demuxer = nullptr;
strong_self->onShutdown(ex);
}
});
} else {