mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 21:01:08 +00:00
Bug 1881620 - part2 : use ExternalEngineStateMachine for non-mse media only when the media engine pref allows non-encrypted playback. r=jolin
Depends on D202511 Differential Revision: https://phabricator.services.mozilla.com/D202758
This commit is contained in:
parent
c3e6874982
commit
4255184fd2
@ -221,9 +221,10 @@ MediaDecoderStateMachineBase* ChannelMediaDecoder::CreateStateMachine(
|
||||
mReader = DecoderTraits::CreateReader(ContainerType(), init);
|
||||
|
||||
#ifdef MOZ_WMF_MEDIA_ENGINE
|
||||
// TODO : Only for testing development for now. In the future this should be
|
||||
// used for encrypted content only.
|
||||
if (StaticPrefs::media_wmf_media_engine_enabled() &&
|
||||
// only use it when the pref allows media engine non-encrypted playback
|
||||
// 1=enabled encrypted and clear, 3=enabled clear
|
||||
if ((StaticPrefs::media_wmf_media_engine_enabled() == 1 ||
|
||||
StaticPrefs::media_wmf_media_engine_enabled() == 3) &&
|
||||
StaticPrefs::media_wmf_media_engine_channel_decoder_enabled() &&
|
||||
!aDisableExternalEngine) {
|
||||
return new ExternalEngineStateMachine(this, mReader);
|
||||
|
Loading…
Reference in New Issue
Block a user