зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset 98a1ef2f2b30 (bug 1414829
) for merge conflict
This commit is contained in:
Родитель
d23400b578
Коммит
f1b2e9a5b8
|
@ -540,8 +540,6 @@ class TransportConduitTest : public ::testing::Test
|
|||
|
||||
err = videoSession->ConfigureSendMediaCodec(nullptr);
|
||||
EXPECT_TRUE(err != mozilla::kMediaConduitNoError);
|
||||
|
||||
videoSession->DeleteStreams();
|
||||
}
|
||||
|
||||
private:
|
||||
|
|
|
@ -169,8 +169,6 @@ public:
|
|||
virtual uint64_t CodecPluginID() override { return 0; }
|
||||
virtual void SetPCHandle(const std::string& aPCHandle) override {}
|
||||
|
||||
virtual void DeleteStreams() override {}
|
||||
|
||||
explicit WebrtcAudioConduit():
|
||||
mVoiceEngine(nullptr),
|
||||
mTransportMonitor("WebrtcAudioConduit"),
|
||||
|
|
|
@ -284,8 +284,6 @@ public:
|
|||
|
||||
virtual void SetPCHandle(const std::string& aPCHandle) = 0;
|
||||
|
||||
virtual void DeleteStreams() = 0;
|
||||
|
||||
NS_INLINE_DECL_THREADSAFE_REFCOUNTING(MediaSessionConduit)
|
||||
|
||||
};
|
||||
|
|
|
@ -318,7 +318,7 @@ WebrtcVideoConduit::~WebrtcVideoConduit()
|
|||
|
||||
// Release AudioConduit first by dropping reference on MainThread, where it expects to be
|
||||
SyncTo(nullptr);
|
||||
MOZ_ASSERT(!mSendStream && !mRecvStream, "Call DeleteStreams prior to ~WebrtcVideoConduit.");
|
||||
Destroy();
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -1193,7 +1193,7 @@ WebrtcVideoConduit::Init()
|
|||
}
|
||||
|
||||
void
|
||||
WebrtcVideoConduit::DeleteStreams()
|
||||
WebrtcVideoConduit::Destroy()
|
||||
{
|
||||
// We can't delete the VideoEngine until all these are released!
|
||||
// And we can't use a Scoped ptr, since the order is arbitrary
|
||||
|
|
|
@ -256,8 +256,6 @@ public:
|
|||
mPCHandle = aPCHandle;
|
||||
}
|
||||
|
||||
virtual void DeleteStreams() override;
|
||||
|
||||
unsigned int SendingMaxFs() override {
|
||||
if(mCurSendCodecConfig) {
|
||||
return mCurSendCodecConfig->mEncodingConstraints.maxFs;
|
||||
|
@ -294,6 +292,7 @@ public:
|
|||
|
||||
MediaConduitErrorCode InitMain();
|
||||
virtual MediaConduitErrorCode Init();
|
||||
virtual void Destroy();
|
||||
|
||||
std::vector<unsigned int> GetLocalSSRCs() const override;
|
||||
bool SetLocalSSRCs(const std::vector<unsigned int> & ssrcs) override;
|
||||
|
|
|
@ -1110,10 +1110,6 @@ PeerConnectionMedia::SelfDestruct_m()
|
|||
mLocalSourceStreams.Clear();
|
||||
mRemoteSourceStreams.Clear();
|
||||
|
||||
for (auto i = mConduits.begin(); i != mConduits.end(); ++i) {
|
||||
i->second.second->DeleteStreams();
|
||||
}
|
||||
|
||||
mMainThread = nullptr;
|
||||
|
||||
// Final self-destruct.
|
||||
|
|
Загрузка…
Ссылка в новой задаче