Closed Bug 1916008 Opened 6 months ago Closed 5 months ago

Separate signal handling for AudioTrimmer and MediaChangeMonitor creation

Categories

(Core :: Audio/Video, task, P1)

task

Tracking

()

RESOLVED FIXED
132 Branch
Tracking Status
firefox132 --- fixed

People

(Reporter: chunmin, Assigned: chunmin)

References

Details

Attachments

(5 files)

For bug 1891082, the creation of AudioTrimmer and MediaChangeMonitor will need to rely on separate variables instead of a single NoWrapper::mDontUseWrapper variable.

Previously, the MediaChangeMonitor was only used for video codecs like H264 and VPX, so the conditional creation of AudioTrimmer and MediaChangeMonitor can rely on the same variable by checking whether the codec is audio or video. However, the patches in bug 1891082 will make MediaChangeMonitor used for AAC as well, so using two separate variables checking the need to create AudioTrimmer and MediaChangeMonitor is required. Otherwise, after MediaChangeMonitor is created for AAC, the NoWrapper::mDontUseWrapper will be set, and no AudioTrimmer will be created.

Additionally, by two variables signalling creating AudioTrimmer and MediaChangeMonitor separately, MediaChangeMonitor for AAC can only be set for WebCodecs' usage, without risking breaking other use cases for this change.

Attachment #9421903 - Attachment description: WIP: Bug 1916008 - Using two bit flags signalling AudioTrimmer and MediaChangeMonitor creation individually → WIP: Bug 1916008 - Using bit flags to signal AudioTrimmer and MediaChangeMonitor creation individually

Depends on D220963

Depends on D220964

Attachment #9421903 - Attachment description: WIP: Bug 1916008 - Using bit flags to signal AudioTrimmer and MediaChangeMonitor creation individually → WIP: Bug 1916008 - Use individual signals for AudioTrimmer and MediaChangeMonitor creation
Attachment #9421903 - Attachment description: WIP: Bug 1916008 - Use individual signals for AudioTrimmer and MediaChangeMonitor creation → WIP: Bug 1916008 - Separate signals for AudioTrimmer and MediaChangeMonitor creations
Attachment #9422396 - Attachment description: WIP: Bug 1916008 - Add ToString() for CreateDecoderParams → Bug 1916008 - Add ToString() for CreateDecoderParams
Attachment #9422398 - Attachment description: WIP: Bug 1916008 - Log CreateDecoderParams in MediaChangeMonitor → Bug 1916008 - Log CreateDecoderParams in MediaChangeMonitor
Attachment #9422399 - Attachment description: WIP: Bug 1916008 - Remove unused parameters in AudioTrimmer → Bug 1916008 - Remove unused parameters in AudioTrimmer
Attachment #9421903 - Attachment description: WIP: Bug 1916008 - Separate signals for AudioTrimmer and MediaChangeMonitor creations → Bug 1916008 - Separate signals for AudioTrimmer and MediaChangeMonitor creations
Attachment #9421903 - Attachment description: Bug 1916008 - Separate signals for AudioTrimmer and MediaChangeMonitor creations → Bug 1916008 - Separate signal handling for AudioTrimmer and MediaChangeMonitor creation

Fix WARNING: constructor does not initialize these fields: mEncryptedCustomIdent

Depends on D220753

Summary: Using two separate variables signalling the creation for AudioTrimmer and MediaChangeMonitor instead of a single NoWrapper vairable → Separate signal handling for AudioTrimmer and MediaChangeMonitor creation
Pushed by cchang@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e59dbd7cdffd Add ToString() for CreateDecoderParams r=media-playback-reviewers,padenot https://hg.mozilla.org/integration/autoland/rev/9962423787fd Log CreateDecoderParams in MediaChangeMonitor r=media-playback-reviewers,padenot https://hg.mozilla.org/integration/autoland/rev/32f7f86bdedc Remove unused parameters in AudioTrimmer r=media-playback-reviewers,padenot https://hg.mozilla.org/integration/autoland/rev/fef9517a08ae Separate signal handling for AudioTrimmer and MediaChangeMonitor creation r=media-playback-reviewers,padenot https://hg.mozilla.org/integration/autoland/rev/dc465849474d Init mEncryptedCustomIdent in CreateDecoderParams r=media-playback-reviewers,padenot
Regressions: 1919081
Regressions: 1920434
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: