From edf5b8db9c15d1d116a842777aa4caed67f9c622 Mon Sep 17 00:00:00 2001 From: JW Wang Date: Wed, 29 Jun 2016 07:50:33 +0800 Subject: [PATCH] Bug 1235183. Part 5 - per comment 35, cancel existing |mChannelLoader| in AbortExistingLoads(). r=cpearce MozReview-Commit-ID: 27DZC8rwAJ5 --HG-- extra : rebase_source : 71f7798675c2d6d9521a2615a5d0292bce107a0a --- dom/html/HTMLMediaElement.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dom/html/HTMLMediaElement.cpp b/dom/html/HTMLMediaElement.cpp index c3f216f1265a..5a4377d14053 100644 --- a/dom/html/HTMLMediaElement.cpp +++ b/dom/html/HTMLMediaElement.cpp @@ -873,6 +873,11 @@ void HTMLMediaElement::AbortExistingLoads() // with a different load ID to silently be cancelled. mCurrentLoadID++; + if (mChannelLoader) { + mChannelLoader->Cancel(); + mChannelLoader = nullptr; + } + bool fireTimeUpdate = false; // When aborting the existing loads, empty the objects in audio track list and