Bug 1221587: patch 4 - Rename MediaStreamGraphShutdownThreadRunnable2 r=padenot draft
authorAndreas Pehrson <pehrsons@gmail.com>
Fri, 08 Jan 2016 11:34:00 -0500
changeset 320103 48e44027b1c1b0af2a9fdfa361e0399e0e125cc9
parent 320102 735bd3013ba0fe73bf69868791b3a50b336bee76
child 320104 8cdc0c1b3b0b267833a8e3095cddbd137d1383ba
push id9134
push userrjesup@wgate.com
push dateFri, 08 Jan 2016 16:39:51 +0000
reviewerspadenot
bugs1221587
milestone46.0a1
Bug 1221587: patch 4 - Rename MediaStreamGraphShutdownThreadRunnable2 r=padenot
dom/media/GraphDriver.cpp
--- a/dom/media/GraphDriver.cpp
+++ b/dom/media/GraphDriver.cpp
@@ -416,19 +416,19 @@ void SystemClockDriver::WakeUp()
 
 OfflineClockDriver::OfflineClockDriver(MediaStreamGraphImpl* aGraphImpl, GraphTime aSlice)
   : ThreadedDriver(aGraphImpl),
     mSlice(aSlice)
 {
 
 }
 
-class MediaStreamGraphShutdownThreadRunnable2 : public nsRunnable {
+class MediaStreamGraphShutdownThreadRunnable : public nsRunnable {
 public:
-  explicit MediaStreamGraphShutdownThreadRunnable2(nsIThread* aThread)
+  explicit MediaStreamGraphShutdownThreadRunnable(nsIThread* aThread)
     : mThread(aThread)
   {
   }
   NS_IMETHOD Run()
   {
     MOZ_ASSERT(NS_IsMainThread());
     MOZ_ASSERT(mThread);
 
@@ -440,17 +440,17 @@ private:
   nsCOMPtr<nsIThread> mThread;
 };
 
 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);
   }
 }
 
 MediaTime
 OfflineClockDriver::GetIntervalForIteration()
 {