Closed
Bug 1215023
Opened 10 years ago
Closed 10 years ago
Remove null check of mOwner from MediaDecoder
Categories
(Core :: Audio/Video: Playback, defect, P2)
Core
Audio/Video: Playback
Tracking
()
RESOLVED
FIXED
mozilla44
Tracking | Status | |
---|---|---|
firefox44 | --- | fixed |
People
(Reporter: jwwang, Assigned: jwwang)
References
Details
Attachments
(2 files)
After bug 1214989 is landed, we can enforce more invariants.
Since mOwner is initialized in the constructor, we can make it a const member and remove null checks spreading across the entire class.
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → jwwang
Assignee | ||
Comment 1•10 years ago
|
||
Assignee | ||
Comment 2•10 years ago
|
||
Bug 1215023. Part 1 - make MediaDecoder::mOwner a const member. We will check mShuttingDown before calling functions of mOwner.
Assignee | ||
Comment 3•10 years ago
|
||
Bug 1215023. Part 2 - remove null check of mOwner. We check mShuttingDown to know whether it is valid to call functions of mOwner.
Attachment #8675485 -
Flags: review?(kinetik)
Comment 4•10 years ago
|
||
Comment on attachment 8675485 [details]
MozReview Request: Bug 1215023. Part 2 - remove null check of mOwner. We check mShuttingDown to know whether it is valid to call functions of mOwner.
https://reviewboard.mozilla.org/r/22377/#review19973
Attachment #8675485 -
Flags: review?(kinetik) → review+
Comment 5•10 years ago
|
||
Comment on attachment 8675484 [details]
MozReview Request: Bug 1215023. Part 1 - make MediaDecoder::mOwner a const member. We will check mShuttingDown before calling functions of mOwner.
https://reviewboard.mozilla.org/r/22375/#review19977
Attachment #8675484 -
Flags: review+
Assignee | ||
Comment 6•10 years ago
|
||
Thanks for the review!
Updated•10 years ago
|
Priority: -- → P2
Comment 8•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/5de7b460e380
https://hg.mozilla.org/mozilla-central/rev/2775215bf67e
Status: NEW → RESOLVED
Closed: 10 years ago
status-firefox44:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla44
Comment 9•10 years ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•