Backed out changeset 6b52ab7a62ed (
bug 1400912) for mda failures, e.g. in dom/media/tests/mochitest/test_peerConnection_addSecondVideoStreamNoBundle.html and media related mochitest failures. r=backout on a CLOSED TREE
Backed out changeset 6b52ab7a62ed (
bug 1400912) for mda failures, e.g. in dom/media/tests/mochitest/test_peerConnection_addSecondVideoStreamNoBundle.html and media related mochitest failures. r=backout on a CLOSED TREE
--- a/dom/media/systemservices/CamerasChild.cpp
+++ b/dom/media/systemservices/CamerasChild.cpp
@@ -251,18 +251,18 @@ private:
const char* mRequestingFunc;
nsIRunnable* mRunnable;
// Prevent concurrent use of the reply variables by holding
// the mReplyMonitor. Note that this is unlocked while waiting for
// the reply to be filled in, necessitating the additional mRequestLock/Mutex;
MonitorAutoLock mReplyLock;
MutexAutoLock mRequestLock;
bool mSuccess;
- const T mFailureValue;
- const T mSuccessValue;
+ const T& mFailureValue;
+ const T& mSuccessValue;
};
bool
CamerasChild::DispatchToParent(nsIRunnable* aRunnable,
MonitorAutoLock& aMonitor)
{
CamerasSingleton::Mutex().AssertCurrentThreadOwns();
CamerasSingleton::Thread()->Dispatch(aRunnable, NS_DISPATCH_NORMAL);