зеркало из https://github.com/mozilla/gecko-dev.git
Bug 820538: Added media-ptr check because of NS_DISPATCH_SYNC. r=rjesup
This commit is contained in:
Родитель
de1ccd1435
Коммит
80ca76c7ad
|
@ -2665,12 +2665,10 @@ vcmCreateTransportFlow(sipcc::PeerConnectionImpl *pc, int level, bool rtcp,
|
||||||
WrapRunnableRet(flow, &TransportFlow::PushLayers, layers, &res),
|
WrapRunnableRet(flow, &TransportFlow::PushLayers, layers, &res),
|
||||||
NS_DISPATCH_SYNC);
|
NS_DISPATCH_SYNC);
|
||||||
|
|
||||||
if (NS_FAILED(rv) || NS_FAILED(res)) {
|
if (NS_FAILED(rv) || NS_FAILED(res) || !pc->media().get()) { // SYNC re-check
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
pc->media()->AddTransportFlow(level, rtcp, flow);
|
pc->media()->AddTransportFlow(level, rtcp, flow);
|
||||||
}
|
}
|
||||||
|
|
||||||
return flow;
|
return flow;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче