Bug 1289976. Part 2 - Remove the IsShutdown() check from MediaDecoder::DumpDebugInfo() which happens before Shutdown(). r=kaku

MozReview-Commit-ID: HU3ybjFZMsE

--HG--
extra : rebase_source : 15d9adb47be449fdaca6a37587e70ff4f1d013bf
This commit is contained in:
JW Wang 2016-07-27 10:33:50 +08:00
Родитель 0a748cd015
Коммит 61a6cb705b
1 изменённых файлов: 4 добавлений и 3 удалений

Просмотреть файл

@ -1942,17 +1942,18 @@ MediaDecoder::NextFrameBufferedStatus()
void void
MediaDecoder::DumpDebugInfo() MediaDecoder::DumpDebugInfo()
{ {
MOZ_ASSERT(!IsShutdown());
DUMP_LOG("metadata: channels=%u rate=%u hasAudio=%d hasVideo=%d, " DUMP_LOG("metadata: channels=%u rate=%u hasAudio=%d hasVideo=%d, "
"state: mPlayState=%s mIsDormant=%d, IsShutdown()=%d", "state: mPlayState=%s mIsDormant=%d",
mInfo ? mInfo->mAudio.mChannels : 0, mInfo ? mInfo->mAudio.mRate : 0, mInfo ? mInfo->mAudio.mChannels : 0, mInfo ? mInfo->mAudio.mRate : 0,
mInfo ? mInfo->HasAudio() : 0, mInfo ? mInfo->HasVideo() : 0, mInfo ? mInfo->HasAudio() : 0, mInfo ? mInfo->HasVideo() : 0,
PlayStateStr(), mIsDormant, IsShutdown()); PlayStateStr(), mIsDormant);
nsString str; nsString str;
GetMozDebugReaderData(str); GetMozDebugReaderData(str);
DUMP_LOG("reader data:\n%s", NS_ConvertUTF16toUTF8(str).get()); DUMP_LOG("reader data:\n%s", NS_ConvertUTF16toUTF8(str).get());
if (!IsShutdown() && GetStateMachine()) { if (GetStateMachine()) {
GetStateMachine()->DumpDebugInfo(); GetStateMachine()->DumpDebugInfo();
} }
} }