Follow up comments on RDD shutdown async patch
Categories
(Core :: Audio/Video: Playback, enhancement, P2)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox68 | --- | fixed |
People
(Reporter: achronop, Assigned: achronop)
References
Details
Attachments
(2 files)
This implement some comments provided after landing on Bug 1545416.
| Assignee | ||
Comment 1•6 years ago
•
|
||
| Assignee | ||
Comment 2•6 years ago
|
||
Instead of deleteing a RefPtr directly copy it in a local variable in order to ensure that the pointer will be alive till the end of the method. In addition to that, on RemoteMediaDataDecpder::Shutdown promise use a reference of the child object instead of the whole self object since this is the only one needed. Finally, one style change.
| Assignee | ||
Comment 3•6 years ago
|
||
| Assignee | ||
Comment 4•6 years ago
|
||
| Assignee | ||
Comment 5•6 years ago
|
||
I am getting some try failures on this. The problem I am observing is that the promise returned from RemoteMediaDataDecoder::Shutdown can be resolved before the promise returned RemoteMediaDataDecoder::Init when the call to RMDD::Shutdown is right after RMDD::Init.
| Assignee | ||
Comment 6•6 years ago
|
||
| Assignee | ||
Comment 7•6 years ago
|
||
When RemoteMediaDataDecoder::Shutdown is finished it is not necessary to hold a reference of the self any more. Keep the mChild alive, which is the only one needed to destroy the IPDL. In addition to that, deleting the IPDL and destroying the child will be happening at the task queue similar to what was happening before Bug 1545416.
Updated•6 years ago
|
Updated•6 years ago
|
Comment 9•6 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/d4bbc018fe90
https://hg.mozilla.org/mozilla-central/rev/5ba6d20ec80a
Description
•