From c7d7999f5394790599c11833baf082fe400ae82d Mon Sep 17 00:00:00 2001 From: ziyue <1213642868@qq.com> Date: Wed, 18 May 2022 20:07:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=BC=E5=AE=B9gcc4.8=E7=BC=96=E8=AF=91?= =?UTF-8?q?=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Http/HlsPlayer.cpp | 3 ++- src/Http/TsplayerImp.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Http/HlsPlayer.cpp b/src/Http/HlsPlayer.cpp index e7af45e4..5a2a7a36 100644 --- a/src/Http/HlsPlayer.cpp +++ b/src/Http/HlsPlayer.cpp @@ -383,7 +383,8 @@ void HlsPlayerImp::onShutdown(const SockException &ex) { static_pointer_cast(_demuxer)->pushTask([weak_self, ex]() { auto strong_self = weak_self.lock(); if (strong_self) { - strong_self->PlayerImp::onShutdown(ex); + strong_self->_demuxer = nullptr; + strong_self->onShutdown(ex); } }); } else { diff --git a/src/Http/TsplayerImp.cpp b/src/Http/TsplayerImp.cpp index ae988637..b906600c 100644 --- a/src/Http/TsplayerImp.cpp +++ b/src/Http/TsplayerImp.cpp @@ -50,7 +50,8 @@ void TsPlayerImp::onShutdown(const SockException &ex) { static_pointer_cast(_demuxer)->pushTask([weak_self, ex]() { auto strong_self = weak_self.lock(); if (strong_self) { - strong_self->PlayerImp::onShutdown(ex); + strong_self->_demuxer = nullptr; + strong_self->onShutdown(ex); } }); } else {