Bug fix for OnRemoveStream.
Review URL: http://webrtc-codereview.appspot.com/116009 git-svn-id: http://webrtc.googlecode.com/svn/trunk@396 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
ff476c6c4e
commit
18cec47eab
@ -214,7 +214,6 @@ void WebRTCSession::DestroyChannel(
|
|||||||
for (iter = streams_.begin(); iter != streams_.end(); ++iter) {
|
for (iter = streams_.begin(); iter != streams_.end(); ++iter) {
|
||||||
if (content_name.compare((*iter)->stream_id) == 0) {
|
if (content_name.compare((*iter)->stream_id) == 0) {
|
||||||
(*iter)->transport = NULL;
|
(*iter)->transport = NULL;
|
||||||
streams_.erase(iter);
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -555,6 +554,7 @@ void WebRTCSession::RemoveStreamOnRequest(
|
|||||||
channel_manager_->DestroyVideoChannel(channel);
|
channel_manager_->DestroyVideoChannel(channel);
|
||||||
}
|
}
|
||||||
SignalRemoveStream2((*siter)->stream_id, (*siter)->video);
|
SignalRemoveStream2((*siter)->stream_id, (*siter)->video);
|
||||||
|
streams_.erase(siter);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user