Bug 1097823 - Followup fix to ensure that the borrowed task queue doesn't get destroyed before subdecoders shut down. rpending=cpearce

This commit is contained in:
Bobby Holley 2014-12-07 13:25:11 -08:00
parent 0bff227286
commit b007d59daf

View File

@ -296,7 +296,6 @@ MediaSourceReader::OnVideoNotDecoded(NotDecodedReason aReason)
void
MediaSourceReader::Shutdown()
{
MediaDecoderReader::Shutdown();
for (uint32_t i = 0; i < mTrackBuffers.Length(); ++i) {
mTrackBuffers[i]->Shutdown();
}
@ -307,6 +306,8 @@ MediaSourceReader::Shutdown()
MOZ_ASSERT(mAudioPromise.IsEmpty());
MOZ_ASSERT(mVideoPromise.IsEmpty());
MediaDecoderReader::Shutdown();
}
void