diff options
author | wolfbeast <mcwerewolf@gmail.com> | 2018-07-01 12:57:51 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-07-01 12:57:51 +0200 |
commit | ca3a3b63eed0de7d86291dab8479dcc3e4fc4b8f (patch) | |
tree | 3265beacca87ccdcf598c270456b06664b8d6eaa /media/webrtc/signaling/src/peerconnection | |
parent | 8d29394b4bc27b3575141685647df1509d687441 (diff) | |
download | UXP-ca3a3b63eed0de7d86291dab8479dcc3e4fc4b8f.tar UXP-ca3a3b63eed0de7d86291dab8479dcc3e4fc4b8f.tar.gz UXP-ca3a3b63eed0de7d86291dab8479dcc3e4fc4b8f.tar.lz UXP-ca3a3b63eed0de7d86291dab8479dcc3e4fc4b8f.tar.xz UXP-ca3a3b63eed0de7d86291dab8479dcc3e4fc4b8f.zip |
WebRTC: Add DeleteStreams to media conduits.
Diffstat (limited to 'media/webrtc/signaling/src/peerconnection')
-rw-r--r-- | media/webrtc/signaling/src/peerconnection/PeerConnectionMedia.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/media/webrtc/signaling/src/peerconnection/PeerConnectionMedia.cpp b/media/webrtc/signaling/src/peerconnection/PeerConnectionMedia.cpp index 4f42b0bb7..6477a7d78 100644 --- a/media/webrtc/signaling/src/peerconnection/PeerConnectionMedia.cpp +++ b/media/webrtc/signaling/src/peerconnection/PeerConnectionMedia.cpp @@ -1,4 +1,4 @@ -/* This Source Code Form is subject to the terms of the Mozilla Public +:SelfDestruct_m/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. */ @@ -1036,6 +1036,11 @@ PeerConnectionMedia::SelfDestruct_m() mLocalSourceStreams.Clear(); mRemoteSourceStreams.Clear(); + // Clean up our send and receive streams + for (auto i = mConduits.begin(); i != mConduits.end(); ++i) { + i->second.second->DeleteStreams(); + } + mMainThread = nullptr; // Final self-destruct. |