From f1555a5501df00ed5acec67285666bd2d2c1cbd5 Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Fri, 13 May 2022 23:54:04 +0800 Subject: [PATCH] =?UTF-8?q?=E9=98=B2=E6=AD=A2=E5=BF=BD=E7=95=A5shutdown?= =?UTF-8?q?=E4=BA=8B=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Http/HlsPlayer.cpp | 2 ++ src/Http/TsplayerImp.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/Http/HlsPlayer.cpp b/src/Http/HlsPlayer.cpp index 07c6a3cd..e7af45e4 100644 --- a/src/Http/HlsPlayer.cpp +++ b/src/Http/HlsPlayer.cpp @@ -386,6 +386,8 @@ void HlsPlayerImp::onShutdown(const SockException &ex) { strong_self->PlayerImp::onShutdown(ex); } }); + } else { + PlayerImp::onShutdown(ex); } } diff --git a/src/Http/TsplayerImp.cpp b/src/Http/TsplayerImp.cpp index 6d6d1c17..ae988637 100644 --- a/src/Http/TsplayerImp.cpp +++ b/src/Http/TsplayerImp.cpp @@ -53,6 +53,8 @@ void TsPlayerImp::onShutdown(const SockException &ex) { strong_self->PlayerImp::onShutdown(ex); } }); + } else { + PlayerImp::onShutdown(ex); } }