BugFix: prevent the player's configuration from being overridden in addStreamProxy

This commit is contained in:
xia-chu 2024-03-22 20:34:07 +08:00 committed by 夏楚
parent db4c570d19
commit cfac61e55b

View File

@ -584,8 +584,10 @@ void addStreamProxy(const string &vhost, const string &app, const string &stream
//添加拉流代理 //添加拉流代理
auto player = s_player_proxy.make(key, vhost, app, stream, option, retry_count); auto player = s_player_proxy.make(key, vhost, app, stream, option, retry_count);
// 先透传参数 // 先透传拷贝参数
player->mINI::operator=(args); for (auto &pr : args) {
(*player)[pr.first] = pr.second;
}
//指定RTP over TCP(播放rtsp时有效) //指定RTP over TCP(播放rtsp时有效)
(*player)[Client::kRtpType] = rtp_type; (*player)[Client::kRtpType] = rtp_type;