重连时,注销直接拉流代理的流:#532
This commit is contained in:
parent
dd2abd7924
commit
bfdd02905c
|
|
@ -93,6 +93,10 @@ void PlayerProxy::play(const string &strUrlTmp) {
|
||||||
if(!strongSelf) {
|
if(!strongSelf) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//注销直接拉流代理产生的流:#532
|
||||||
|
strongSelf->setMediaSource(nullptr);
|
||||||
|
|
||||||
if(strongSelf->_muxer) {
|
if(strongSelf->_muxer) {
|
||||||
auto tracks = strongSelf->MediaPlayer::getTracks(false);
|
auto tracks = strongSelf->MediaPlayer::getTracks(false);
|
||||||
for (auto & track : tracks){
|
for (auto & track : tracks){
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue