Bug 1700492 - add some new debug log for MSE. r=bryce

Differential Revision: https://phabricator.services.mozilla.com/D109563
This commit is contained in:
alwu 2021-03-24 16:26:39 +00:00
Родитель f4238ee721
Коммит f3f041d6d1
1 изменённых файлов: 3 добавлений и 0 удалений

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

@ -1285,6 +1285,7 @@ void TrackBuffersManager::OnDemuxerInitDone(const MediaResult& aResult) {
// 5. If the first initialization segment received flag is false, then run
// the following steps:
if (!mFirstInitializationSegmentReceived) {
MSE_DEBUG("Get first init data");
mAudioTracks.mNumTracks = numAudios;
// TODO:
// 1. If the initialization segment contains tracks with codecs the user
@ -1420,6 +1421,7 @@ void TrackBuffersManager::OnDemuxerInitDone(const MediaResult& aResult) {
// 6. Set first initialization segment received flag to true.
mFirstInitializationSegmentReceived = true;
} else {
MSE_DEBUG("Get new init data");
mAudioTracks.mLastInfo = new TrackInfoSharedPtr(info.mAudio, streamID);
mVideoTracks.mLastInfo = new TrackInfoSharedPtr(info.mVideo, streamID);
}
@ -1475,6 +1477,7 @@ void TrackBuffersManager::OnDemuxerInitDone(const MediaResult& aResult) {
}
void TrackBuffersManager::OnDemuxerInitFailed(const MediaResult& aError) {
MSE_DEBUG("");
MOZ_ASSERT(aError != NS_ERROR_DOM_MEDIA_WAITING_FOR_DATA);
mDemuxerInitRequest.Complete();