mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 11:25:00 +00:00
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:
parent
ffad2f30e5
commit
624abac6d4
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user