mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-02-05 16:00:49 +08:00
兼容gcc4.8编译器
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user