From d2e51e6dd635d3e3f0a7d51f3fe3a19b3483e8a3 Mon Sep 17 00:00:00 2001 From: Jean-Yves Avenard Date: Wed, 23 Mar 2016 13:44:00 +1100 Subject: [PATCH] Bug 1258410: [MSE] P1. Abort if mInputDemuxer has been reset. r=gerald MozReview-Commit-ID: 3irSFFSnXFp --HG-- extra : rebase_source : a10d067d54ad3f4a67027efae50282270732c265 --- dom/media/mediasource/TrackBuffersManager.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/dom/media/mediasource/TrackBuffersManager.cpp b/dom/media/mediasource/TrackBuffersManager.cpp index a2c6d0e29b21..3803d18d6069 100644 --- a/dom/media/mediasource/TrackBuffersManager.cpp +++ b/dom/media/mediasource/TrackBuffersManager.cpp @@ -879,9 +879,12 @@ TrackBuffersManager::OnDemuxerInitDone(nsresult) MOZ_ASSERT(OnTaskQueue()); mDemuxerInitRequest.Complete(); - // mInputDemuxer shouldn't have been destroyed while a demuxer init/reset - // request was being processed. See bug 1239983. - MOZ_DIAGNOSTIC_ASSERT(mInputDemuxer); + if (!mInputDemuxer) { + // mInputDemuxer shouldn't have been destroyed while a demuxer init/reset + // request was being processed. See bug 1239983. + NS_WARNING("mInputDemuxer has been destroyed"); + RejectAppend(NS_ERROR_ABORT, __func__); + } MediaInfo info;