Open Bug 1319269 Opened 5 years ago Updated 4 years ago

Make PDM::Create*Decoder asynchronous and remove MediaDataDecoder::Init API

Categories

(Core :: Audio/Video: Playback, defect, P3)

defect

Tracking

()

People

(Reporter: jya, Unassigned)

Details

Attachments

(3 files)

Currently to create a usable decoder, we must for PDM::CreateVideoDecoder or PDM::CreateAudioDecoder.

After which we call Init() on the returned MediaDataDecoder which will return a promise once done.

That CreateVideoDecoder is asynchronous, causes difficulty for things like bug 1318083.

We should have CreateVideoDecoder/CreateAudioDecoder return a promise instead. Once the promise is resolved, an initialised decoder will be returned instead. Removing the need for Init alltogether.
I would like to try it.
Assignee: nobody → alwu
Now I'm working changing the interface for remote decoder, it's a little complex.
Finished the preliminary version, still modifying and testing my patches.
Fixing the test case failures and memory leak.
Fixed EME test case crash, but still need to fix the memory leak issue.
Assignee: alastor0325 → nobody
You need to log in before you can comment on or make changes to this bug.