mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1156708: Part3. Disable audio track when using combined track sourcebuffer. r=kentuckyfriedtakahe
This is an unsupported configuration. We currently only whitelist MSE clients using separate audio and video tracks.
This commit is contained in:
parent
92fc890f99
commit
dc6019613e
@ -1134,6 +1134,11 @@ MediaSourceReader::ReadMetadata(MediaInfo* aInfo, MetadataTags** aTags)
|
|||||||
return NS_ERROR_FAILURE;
|
return NS_ERROR_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (mAudioTrack == mVideoTrack) {
|
||||||
|
NS_WARNING("Combined audio/video sourcebuffer, this is an unsupported "
|
||||||
|
"configuration, only using video track");
|
||||||
|
mAudioTrack = nullptr;
|
||||||
|
}
|
||||||
if (mAudioTrack) {
|
if (mAudioTrack) {
|
||||||
MOZ_ASSERT(mAudioTrack->IsReady());
|
MOZ_ASSERT(mAudioTrack->IsReady());
|
||||||
mAudioSourceDecoder = mAudioTrack->Decoders()[0];
|
mAudioSourceDecoder = mAudioTrack->Decoders()[0];
|
||||||
|
Loading…
Reference in New Issue
Block a user