Backed out changeset 36a63b9f8dcb (bug 1247189)
authorSebastian Hengst <archaeopteryx@coole-files.de>
Wed, 11 Oct 2017 12:45:40 +0200
changeset 385650 40fc05c294b610d38a156ce8cc27ac28492a2d91
parent 385649 68baa2a6566d64ff98106e94399b174484007552
child 385651 72100c49932866ff29178482b953d34e56b36a78
push id32664
push userarchaeopteryx@coole-files.de
push dateThu, 12 Oct 2017 09:34:55 +0000
treeherdermozilla-central@a32c32d9631c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1247189
milestone58.0a1
backs out36a63b9f8dcbf3ee5c8753b16b5a1d633181fb7b
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
Backed out changeset 36a63b9f8dcb (bug 1247189)
dom/media/mediasource/TrackBuffersManager.cpp
--- a/dom/media/mediasource/TrackBuffersManager.cpp
+++ b/dom/media/mediasource/TrackBuffersManager.cpp
@@ -167,27 +167,16 @@ TrackBuffersManager::QueueTask(SourceBuf
   MOZ_ASSERT(OnTaskQueue());
   mQueue.Push(aTask);
   ProcessTasks();
 }
 
 void
 TrackBuffersManager::ProcessTasks()
 {
-  // A second Detach task was queued, prior the first one running, ignore it.
-  if (!GetTaskQueue()) {
-    RefPtr<SourceBufferTask> task = mQueue.Pop();
-    MOZ_RELEASE_ASSERT(task);
-    MOZ_RELEASE_ASSERT(task->GetType() == SourceBufferTask::Type::Detach,
-                       "only detach task could happen here!");
-    MSE_DEBUG("Could not process the task '%s' after detached",
-              task->GetTypeName());
-    return;
-  }
-
   MOZ_ASSERT(OnTaskQueue());
   typedef SourceBufferTask::Type Type;
 
   if (mCurrentTask) {
     // Already have a task pending. ProcessTask will be scheduled once the
     // current task complete.
     return;
   }