Commit c7d7999f by ziyue

兼容gcc4.8编译器

parent 6cab65f7
......@@ -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 {
......
......@@ -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 {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论