mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-10-06 20:23:43 +08:00
兼容gcc4.8编译器
This commit is contained in:
parent
6cab65f7b0
commit
c7d7999f53
|
@ -383,7 +383,8 @@ void HlsPlayerImp::onShutdown(const SockException &ex) {
|
||||||
static_pointer_cast<HlsDemuxer>(_demuxer)->pushTask([weak_self, ex]() {
|
static_pointer_cast<HlsDemuxer>(_demuxer)->pushTask([weak_self, ex]() {
|
||||||
auto strong_self = weak_self.lock();
|
auto strong_self = weak_self.lock();
|
||||||
if (strong_self) {
|
if (strong_self) {
|
||||||
strong_self->PlayerImp<HlsPlayer, PlayerBase>::onShutdown(ex);
|
strong_self->_demuxer = nullptr;
|
||||||
|
strong_self->onShutdown(ex);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -50,7 +50,8 @@ void TsPlayerImp::onShutdown(const SockException &ex) {
|
||||||
static_pointer_cast<HlsDemuxer>(_demuxer)->pushTask([weak_self, ex]() {
|
static_pointer_cast<HlsDemuxer>(_demuxer)->pushTask([weak_self, ex]() {
|
||||||
auto strong_self = weak_self.lock();
|
auto strong_self = weak_self.lock();
|
||||||
if (strong_self) {
|
if (strong_self) {
|
||||||
strong_self->PlayerImp<TsPlayer, PlayerBase>::onShutdown(ex);
|
strong_self->_demuxer = nullptr;
|
||||||
|
strong_self->onShutdown(ex);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user