Bug 1247138: [MSE] P1. Allow change of audio format. r=gerald

MozReview-Commit-ID: 9fktsFVXtdt

--HG--
extra : rebase_source : bba6b286c6281b34d21cd2a1d1341ef05a4977e4
This commit is contained in:
Jean-Yves Avenard 2016-04-14 19:12:44 +10:00
parent ffad2f30e5
commit 624abac6d4

View File

@ -1094,14 +1094,6 @@ TrackBuffersManager::OnDemuxerInitDone(nsresult)
// 6. Set first initialization segment received flag to true.
mFirstInitializationSegmentReceived = true;
} else {
// Check that audio configuration hasn't changed as this is something
// we do not support yet (bug 1185827).
if (mAudioTracks.mNumTracks &&
(info.mAudio.mChannels != mAudioTracks.mInfo->GetAsAudioInfo()->mChannels ||
info.mAudio.mRate != mAudioTracks.mInfo->GetAsAudioInfo()->mRate)) {
RejectAppend(NS_ERROR_FAILURE, __func__);
return;
}
mAudioTracks.mLastInfo = new SharedTrackInfo(info.mAudio, streamID);
mVideoTracks.mLastInfo = new SharedTrackInfo(info.mVideo, streamID);
}