From ebbe124d0015195478164ba48db42f2c739b302d Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Sun, 15 Nov 2020 00:00:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=8D=E8=83=BD=E7=AB=8B?= =?UTF-8?q?=E5=8D=B3=E5=85=B3=E9=97=AD=E6=8B=89=E6=B5=81=E4=BB=A3=E7=90=86?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98=EF=BC=9A#559?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Player/PlayerProxy.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Player/PlayerProxy.cpp b/src/Player/PlayerProxy.cpp index 03e4b8cf..ee81e952 100644 --- a/src/Player/PlayerProxy.cpp +++ b/src/Player/PlayerProxy.cpp @@ -169,10 +169,10 @@ bool PlayerProxy::close(MediaSource &sender,bool force) { strongSelf->_muxer.reset(); strongSelf->setMediaSource(nullptr); strongSelf->teardown(); - if (strongSelf->_on_close) { - strongSelf->_on_close(); - } }); + if (_on_close) { + _on_close(); + } WarnL << sender.getSchema() << "/" << sender.getVhost() << "/" << sender.getApp() << "/" << sender.getId() << " " << force; return true; }