Closed Bug 2083013 Opened 1 month ago Closed 1 month ago

Remove PlatformDecoderModule support for synchronous decoder creation

Categories

(Core :: Audio/Video, task)

task

Tracking

()

RESOLVED FIXED
160 Branch
Tracking Status
firefox160 --- fixed

People

(Reporter: aosmond, Assigned: aosmond)

References

Details

Attachments

(1 external file)

This shouldn't have any functional change, but it does simplify code that struggles to deal with synchronous decoder creation, when asynchronous is more natural. I have later changes that need this.

Blocks: 2083015

AsyncCreateDecoder is now the only way for a PlatformDecoderModule to create a
decoder, and CreateVideoDecoder and CreateAudioDecoder are no longer part of
the interface. Modules which still create their decoders synchronously use the
new CreateDecoderPromiseFrom helper, and the MediaResult out-parameter on
CreateDecoderParams and SupportDecoderParams is removed in favour of rejecting
the promise.

There is no intended change in behaviour. This allows a module to finish
setting up a decoder asynchronously before deciding whether it can be used,
while still letting PDMFactory fall back to another module.

Pushed by aosmond@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/9ee38417a20c https://hg.mozilla.org/integration/autoland/rev/2cf7682cf67c Remove synchronous decoder creation from PlatformDecoderModule. r=media-playback-reviewers,azebrowski
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 160 Branch
QA Whiteboard: [qa-triage-done-c161/b160]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: