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)

defect

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: nobody → jwwang
Depends on: 1214989
Bug 1215023. Part 1 - make MediaDecoder::mOwner a const member. We will check mShuttingDown before calling functions of mOwner.
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 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 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+
Thanks for the review!
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla44
Blocks: 1217653
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: