Bring changes in 1913311 to the encoder
Categories
(Core :: Audio/Video: Web Codecs, defect, P1)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox131 | --- | fixed |
People
(Reporter: chunmin, Assigned: chunmin)
References
(Blocks 1 open bug)
Details
Attachments
(3 files)
Theoretically, the crash pattern in bug 1913311 could also happen on the encoder side since the encoder's architecture is symmetric to the decoder's. Therefore, the changes in bug 1913311 for DecodeAgent should also be applied to the EncoderAgent.
| Assignee | ||
Updated•1 year ago
|
| Assignee | ||
Comment 1•1 year ago
|
||
| Assignee | ||
Comment 2•1 year ago
|
||
This patch addresses a potential crash that could occur if
EncodeAgent::Shutdown is called after PEMFactory fails to create an encoder in EncoderAgent::Configure`, leading to a failed assertion due
to the absence of the expected encoder. This crash pattern is similar to
the one described in bug 1913311.
To resolve this issue, the same method used in bug 1913311 has been
applied. This patch ensures that Encoder::Shutdown can be safely
called even when the MediaDataEncoder is no present, preventing the
crash from occuring.
Depends on D219912
| Assignee | ||
Comment 3•1 year ago
|
||
Depends on D219913
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
https://hg.mozilla.org/mozilla-central/rev/1400a9d3f766
https://hg.mozilla.org/mozilla-central/rev/41fc8585ac30
https://hg.mozilla.org/mozilla-central/rev/460b6005a451
Description
•