Bug 1541186 - Switch to using TYPE_MOZILLA_NONMAINTHREAD for MediaManager. r=jesup
authorJim Mathies <jmathies@mozilla.com>
Wed, 01 May 2019 18:16:55 +0000
changeset 532649 13d43fe66caea88e8923b7329ec194b26cfa2481
parent 532648 ebef76ce78f70c8f4a3b26ce0dbf7d3e556eba8d
child 532650 2e773f4f69c468c09e84f87c12a093c6da9d0dfd
push id11270
push userrgurzau@mozilla.com
push dateWed, 15 May 2019 15:07:19 +0000
treeherdermozilla-beta@571bc76da583 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjesup
bugs1541186
milestone68.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1541186 - Switch to using TYPE_MOZILLA_NONMAINTHREAD for MediaManager. r=jesup Differential Revision: https://phabricator.services.mozilla.com/D25925
dom/media/MediaManager.cpp
--- a/dom/media/MediaManager.cpp
+++ b/dom/media/MediaManager.cpp
@@ -1952,21 +1952,17 @@ MediaManager* MediaManager::Get() {
     sSingleton = new MediaManager();
 
 #ifdef XP_WIN
     sSingleton->mMediaThread = new MTAThread("MediaManager");
 #else
     sSingleton->mMediaThread = new base::Thread("MediaManager");
 #endif
     base::Thread::Options options;
-#if defined(_WIN32)
-    options.message_loop_type = MessageLoop::TYPE_MOZILLA_NONMAINUITHREAD;
-#else
     options.message_loop_type = MessageLoop::TYPE_MOZILLA_NONMAINTHREAD;
-#endif
     if (!sSingleton->mMediaThread->StartWithOptions(options)) {
       MOZ_CRASH();
     }
 
     LOG("New Media thread for gum");
 
     nsCOMPtr<nsIObserverService> obs = services::GetObserverService();
     if (obs) {