зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1221587: Rename MediaStreamGraphShutdownThreadRunnable2 r=padenot
--HG-- extra : commitid : 1aHxyrTUSON
This commit is contained in:
Родитель
ef9e20cf89
Коммит
018b2bea5a
|
@ -421,9 +421,9 @@ OfflineClockDriver::OfflineClockDriver(MediaStreamGraphImpl* aGraphImpl, GraphTi
|
|||
|
||||
}
|
||||
|
||||
class MediaStreamGraphShutdownThreadRunnable2 : public nsRunnable {
|
||||
class MediaStreamGraphShutdownThreadRunnable : public nsRunnable {
|
||||
public:
|
||||
explicit MediaStreamGraphShutdownThreadRunnable2(nsIThread* aThread)
|
||||
explicit MediaStreamGraphShutdownThreadRunnable(nsIThread* aThread)
|
||||
: mThread(aThread)
|
||||
{
|
||||
}
|
||||
|
@ -445,7 +445,7 @@ OfflineClockDriver::~OfflineClockDriver()
|
|||
// transfer the ownership of mThread to the event
|
||||
// XXX should use .forget()/etc
|
||||
if (mThread) {
|
||||
nsCOMPtr<nsIRunnable> event = new MediaStreamGraphShutdownThreadRunnable2(mThread);
|
||||
nsCOMPtr<nsIRunnable> event = new MediaStreamGraphShutdownThreadRunnable(mThread);
|
||||
mThread = nullptr;
|
||||
NS_DispatchToMainThread(event);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче