Skip to content

Commit

Permalink
修复addStreamProxy拉流代理同协议下开关问题 (ZLMediaKit#3779 ZLMediaKit#3770)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiongguangjie authored Aug 2, 2024
1 parent e3cad7f commit 47b8435
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Player/PlayerProxy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -191,13 +191,13 @@ void PlayerProxy::setDirectProxy() {
if (dynamic_pointer_cast<RtspPlayer>(_delegate)) {
// rtsp拉流
GET_CONFIG(bool, directProxy, Rtsp::kDirectProxy);
if (directProxy) {
if (directProxy && _option.enable_rtsp) {
mediaSource = std::make_shared<RtspMediaSource>(_tuple);
}
} else if (dynamic_pointer_cast<RtmpPlayer>(_delegate)) {
// rtmp拉流
GET_CONFIG(bool, directProxy, Rtmp::kDirectProxy);
if (directProxy) {
if (directProxy && _option.enable_rtmp) {
mediaSource = std::make_shared<RtmpMediaSource>(_tuple);
}
}
Expand Down

0 comments on commit 47b8435

Please sign in to comment.