mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-21 01:13:37 +08:00
Fix addStreamProxy retry bug( protocol option overwrite once play success ), result in some media source not register; it's found by the issue #3830 #3810
This commit is contained in:
parent
6889afbc76
commit
cb1821cf88
@ -288,14 +288,18 @@ void PlayerProxy::onPlaySuccess() {
|
||||
if (dynamic_pointer_cast<RtspMediaSource>(_media_src)) {
|
||||
// rtsp拉流代理
|
||||
if (reset_when_replay || !_muxer) {
|
||||
auto old = _option.enable_rtsp;
|
||||
_option.enable_rtsp = false;
|
||||
_muxer = std::make_shared<MultiMediaSourceMuxer>(_tuple, getDuration(), _option);
|
||||
_option.enable_rtsp = old;
|
||||
}
|
||||
} else if (dynamic_pointer_cast<RtmpMediaSource>(_media_src)) {
|
||||
// rtmp拉流代理
|
||||
if (reset_when_replay || !_muxer) {
|
||||
auto old = _option.enable_rtmp;
|
||||
_option.enable_rtmp = false;
|
||||
_muxer = std::make_shared<MultiMediaSourceMuxer>(_tuple, getDuration(), _option);
|
||||
_option.enable_rtmp = old;
|
||||
}
|
||||
} else {
|
||||
// 其他拉流代理
|
||||
|
Loading…
Reference in New Issue
Block a user