From bfdd02905c76289c29e370a1abb6e9efb859bb0b Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Sat, 24 Oct 2020 23:30:25 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E8=BF=9E=E6=97=B6=EF=BC=8C=E6=B3=A8?= =?UTF-8?q?=E9=94=80=E7=9B=B4=E6=8E=A5=E6=8B=89=E6=B5=81=E4=BB=A3=E7=90=86?= =?UTF-8?q?=E7=9A=84=E6=B5=81=EF=BC=9A#532?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Player/PlayerProxy.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Player/PlayerProxy.cpp b/src/Player/PlayerProxy.cpp index f2a4b236..03e4b8cf 100644 --- a/src/Player/PlayerProxy.cpp +++ b/src/Player/PlayerProxy.cpp @@ -93,6 +93,10 @@ void PlayerProxy::play(const string &strUrlTmp) { if(!strongSelf) { return; } + + //注销直接拉流代理产生的流:#532 + strongSelf->setMediaSource(nullptr); + if(strongSelf->_muxer) { auto tracks = strongSelf->MediaPlayer::getTracks(false); for (auto & track : tracks){