Bug 1221587: Rename MediaStreamGraphShutdownThreadRunnable2 r=padenot

--HG--
extra : commitid : 1aHxyrTUSON
This commit is contained in:
Andreas Pehrson 2016-01-21 11:51:35 -05:00
Родитель ef9e20cf89
Коммит 018b2bea5a
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -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);
}