Skip to content

Commit 6330ec5

Browse files
author
Alexandre Lissy
committed
Bug 1767582 - Enable Utility AudioDecoder on Nightly r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D145584
1 parent b7752f4 commit 6330ec5

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

ipc/glue/test/browser/browser_utility_multipleAudio.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,13 @@ async function runTest(expectUtility) {
88
`Running tests with decoding from Utility or RDD: expectUtility=${expectUtility}`
99
);
1010

11-
await SpecialPowers.pushPrefEnv({
12-
set: [["media.utility-process.enabled", expectUtility]],
13-
});
11+
// Utility should now be the default, so dont toggle the pref unless we test
12+
// RDD
13+
if (!expectUtility) {
14+
await SpecialPowers.pushPrefEnv({
15+
set: [["media.utility-process.enabled", expectUtility]],
16+
});
17+
}
1418

1519
for (let src of [
1620
"small-shot.ogg",

modules/libpref/init/StaticPrefList.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8909,9 +8909,21 @@
89098909
# using the IPC actor within the Utility process rather than the RDD process.
89108910
# When it is set to true, then the utility process will take precedence over RDD
89118911
# to perform audio decoding.
8912+
# TODO: Android: Bug 1767930
8913+
# TODO: OpenBSD: Bug 1769033
89128914
- name: media.utility-process.enabled
89138915
type: RelaxedAtomicBool
8916+
#if defined(XP_WIN)
8917+
value: true
8918+
#elif defined(XP_MACOSX)
8919+
value: true
8920+
#elif defined(XP_LINUX) && !defined(ANDROID)
8921+
value: true
8922+
#elif defined(XP_OPENBSD)
89148923
value: false
8924+
#else
8925+
value: false
8926+
#endif
89158927
mirror: always
89168928

89178929
#ifdef MOZ_FFMPEG

0 commit comments

Comments
 (0)