Closed Bug 1287698 Opened 8 years ago Closed 8 years ago

Make MDSM::mPendingDormant a bool

Categories

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

defect

Tracking

()

RESOLVED FIXED
mozilla50
Tracking Status
firefox50 --- fixed

People

(Reporter: jwwang, Assigned: jwwang)

References

Details

Attachments

(1 file)

A bool will do the job. We don't need a Maybe<bool>.
Assignee: nobody → jwwang
Blocks: 1286129
Priority: -- → P3
Comment on attachment 8772305 [details]
Bug 1287698 - Make MDSM::mPendingDormant a bool.

https://reviewboard.mozilla.org/r/65154/#review62192

::: dom/media/MediaDecoderStateMachine.cpp:1198
(Diff revision 1)
>      // reset state, and put a ResetDecode in the decode task queue. Any tasks
>      // that run after ResetDecode are supposed to run with a clean slate. We rely
>      // on that in other places (i.e. seeking), so it seems reasonable to rely on
>      // it here as well.
>      mReader->ReleaseMediaResources();
>    } else if ((aDormant != true) && (mState == DECODER_STATE_DORMANT)) {

aDormant != true is redundant, it will always be true ; plus it's not moz coding style.

may as well change it while there.
Attachment #8772305 - Flags: review?(jyavenard) → review+
https://reviewboard.mozilla.org/r/65154/#review62192

> aDormant != true is redundant, it will always be true ; plus it's not moz coding style.
> 
> may as well change it while there.

Will do. Thanks for the review!
Comment on attachment 8772305 [details]
Bug 1287698 - Make MDSM::mPendingDormant a bool.

Review request updated; see interdiff: https://reviewboard.mozilla.org/r/65154/diff/1-2/
Pushed by jwwang@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/91afa84e2001
Make MDSM::mPendingDormant a bool. r=jya
https://hg.mozilla.org/mozilla-central/rev/91afa84e2001
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla50
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: