зеркало из https://github.com/mozilla/gecko-dev.git
Bug 837037: don't pass the NrIceCtx to IceGathering runnables r=ekr
This commit is contained in:
Родитель
b1bbe62715
Коммит
f45e5cef41
|
@ -1270,22 +1270,21 @@ PeerConnectionImpl::GetHandle()
|
|||
void
|
||||
PeerConnectionImpl::IceGatheringCompleted(NrIceCtx *aCtx)
|
||||
{
|
||||
(void) aCtx;
|
||||
// Do an async call here to unwind the stack. refptr keeps the PC alive.
|
||||
nsRefPtr<PeerConnectionImpl> pc(this);
|
||||
RUN_ON_THREAD(mThread,
|
||||
WrapRunnable(pc,
|
||||
&PeerConnectionImpl::IceGatheringCompleted_m,
|
||||
aCtx),
|
||||
&PeerConnectionImpl::IceGatheringCompleted_m),
|
||||
NS_DISPATCH_NORMAL);
|
||||
}
|
||||
|
||||
nsresult
|
||||
PeerConnectionImpl::IceGatheringCompleted_m(NrIceCtx *aCtx)
|
||||
PeerConnectionImpl::IceGatheringCompleted_m()
|
||||
{
|
||||
PC_AUTO_ENTER_API_CALL(false);
|
||||
MOZ_ASSERT(aCtx);
|
||||
|
||||
CSFLogDebugS(logTag, __FUNCTION__ << ": ctx: " << static_cast<void*>(aCtx));
|
||||
CSFLogDebugS(logTag, __FUNCTION__);
|
||||
|
||||
mIceState = kIceWaiting;
|
||||
|
||||
|
@ -1307,22 +1306,21 @@ PeerConnectionImpl::IceGatheringCompleted_m(NrIceCtx *aCtx)
|
|||
void
|
||||
PeerConnectionImpl::IceCompleted(NrIceCtx *aCtx)
|
||||
{
|
||||
(void) aCtx;
|
||||
// Do an async call here to unwind the stack. refptr keeps the PC alive.
|
||||
nsRefPtr<PeerConnectionImpl> pc(this);
|
||||
RUN_ON_THREAD(mThread,
|
||||
WrapRunnable(pc,
|
||||
&PeerConnectionImpl::IceCompleted_m,
|
||||
aCtx),
|
||||
&PeerConnectionImpl::IceCompleted_m),
|
||||
NS_DISPATCH_NORMAL);
|
||||
}
|
||||
|
||||
nsresult
|
||||
PeerConnectionImpl::IceCompleted_m(NrIceCtx *aCtx)
|
||||
PeerConnectionImpl::IceCompleted_m()
|
||||
{
|
||||
PC_AUTO_ENTER_API_CALL(false);
|
||||
MOZ_ASSERT(aCtx);
|
||||
|
||||
CSFLogDebugS(logTag, __FUNCTION__ << ": ctx: " << static_cast<void*>(aCtx));
|
||||
CSFLogDebugS(logTag, __FUNCTION__);
|
||||
|
||||
mIceState = kIceConnected;
|
||||
|
||||
|
|
|
@ -259,8 +259,8 @@ private:
|
|||
void ShutdownMedia(bool isSynchronous);
|
||||
|
||||
// ICE callbacks run on the right thread.
|
||||
nsresult IceGatheringCompleted_m(NrIceCtx *aCtx);
|
||||
nsresult IceCompleted_m(NrIceCtx *aCtx);
|
||||
nsresult IceGatheringCompleted_m();
|
||||
nsresult IceCompleted_m();
|
||||
|
||||
// The role we are adopting
|
||||
Role mRole;
|
||||
|
|
Загрузка…
Ссылка в новой задаче