From 47b8435d7ca629a83a728da605a84b0f24345232 Mon Sep 17 00:00:00 2001 From: xiongguangjie Date: Fri, 2 Aug 2024 21:32:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DaddStreamProxy=E6=8B=89?= =?UTF-8?q?=E6=B5=81=E4=BB=A3=E7=90=86=E5=90=8C=E5=8D=8F=E8=AE=AE=E4=B8=8B?= =?UTF-8?q?=E5=BC=80=E5=85=B3=E9=97=AE=E9=A2=98=20=20(#3779=20#3770)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Player/PlayerProxy.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Player/PlayerProxy.cpp b/src/Player/PlayerProxy.cpp index b601e16e..2c931212 100644 --- a/src/Player/PlayerProxy.cpp +++ b/src/Player/PlayerProxy.cpp @@ -191,13 +191,13 @@ void PlayerProxy::setDirectProxy() { if (dynamic_pointer_cast(_delegate)) { // rtsp拉流 GET_CONFIG(bool, directProxy, Rtsp::kDirectProxy); - if (directProxy) { + if (directProxy && _option.enable_rtsp) { mediaSource = std::make_shared(_tuple); } } else if (dynamic_pointer_cast(_delegate)) { // rtmp拉流 GET_CONFIG(bool, directProxy, Rtmp::kDirectProxy); - if (directProxy) { + if (directProxy && _option.enable_rtmp) { mediaSource = std::make_shared(_tuple); } }