Closed Bug 1297590 Opened 9 years ago Closed 9 years ago

Put DECODER_STATE_DECODING_FIRSTFRAME back to MDSM

Categories

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

defect

Tracking

()

RESOLVED FIXED
mozilla51
Tracking Status
firefox51 --- fixed

People

(Reporter: jwwang, Assigned: jwwang)

References

Details

Attachments

(10 files)

58 bytes, text/x-review-board-request
kaku
: review+
Details
58 bytes, text/x-review-board-request
kaku
: review+
Details
58 bytes, text/x-review-board-request
kaku
: review+
Details
58 bytes, text/x-review-board-request
kaku
: review+
Details
58 bytes, text/x-review-board-request
kaku
: review+
Details
58 bytes, text/x-review-board-request
kaku
: review+
Details
58 bytes, text/x-review-board-request
kaku
: review+
Details
58 bytes, text/x-review-board-request
kaku
: review+
Details
58 bytes, text/x-review-board-request
kaku
: review+
Details
58 bytes, text/x-review-board-request
kaku
: review+
Details
Moving the job of decoding first frames out of DECODER_STATE_DECODING into its own state, it would be easier and simpler to define transitions between states.
Assignee: nobody → jwwang
Blocks: 1295892
Priority: -- → P3
Attachment #8788060 - Flags: review?(kaku)
Attachment #8788061 - Flags: review?(kaku)
Attachment #8788062 - Flags: review?(kaku)
Attachment #8788063 - Flags: review?(kaku)
Attachment #8788064 - Flags: review?(kaku)
Attachment #8788065 - Flags: review?(kaku)
Attachment #8788066 - Flags: review?(kaku)
Attachment #8788067 - Flags: review?(kaku)
Attachment #8788068 - Flags: review?(kaku)
Attachment #8788069 - Flags: review?(kaku)
Comment on attachment 8788060 [details] Bug 1297590. Part 1 - add DECODER_STATE_DECODING_FIRSTFRAME to MDSM. https://reviewboard.mozilla.org/r/76632/#review74752 ::: dom/media/MediaDecoderStateMachine.cpp:833 (Diff revision 1) > > bool > MediaDecoderStateMachine::CheckIfDecodeComplete() > { > MOZ_ASSERT(OnTaskQueue()); > + // DecodeComplete is possible only after decoding first frames. Why plural type for the "frames" here? I expect for a singular type; also apply to the other comments in this patch.
Attachment #8788060 - Flags: review?(kaku) → review+
Comment on attachment 8788061 [details] Bug 1297590. Part 2 - change test `mState != DECODER_STATE_DECODING` to `mState != DECODER_STATE_DECODING && mState != DECODER_STATE_DECODING_FIRSTFRAME`. https://reviewboard.mozilla.org/r/76634/#review74754
Attachment #8788061 - Flags: review?(kaku) → review+
Comment on attachment 8788062 [details] Bug 1297590. Part 3 - change test `mState >= DECODER_STATE_DECODING && mSentFirstFrameLoadedEvent` to `mState >= DECODER_STATE_DECODING`. https://reviewboard.mozilla.org/r/76636/#review74738
Attachment #8788062 - Flags: review?(kaku) → review+
Comment on attachment 8788063 [details] Bug 1297590. Part 4 - change test `mState >= DECODER_STATE_DECODING` to `mState >= DECODER_STATE_DECODING_FIRSTFRAME`. https://reviewboard.mozilla.org/r/76638/#review74758
Attachment #8788063 - Flags: review?(kaku) → review+
Comment on attachment 8788064 [details] Bug 1297590. Part 5 - change some `SetState(DECODER_STATE_DECODING)` to `SetState(DECODER_STATE_DECODING_FIRSTFRAME)`. https://reviewboard.mozilla.org/r/76640/#review74760
Attachment #8788064 - Flags: review?(kaku) → review+
Comment on attachment 8788065 [details] Bug 1297590. Part 6 - Move MaybeFinishDecodeFirstFrame() from case DECODER_STATE_DECODING to case DECODER_STATE_DECODING_FIRSTFRAME. https://reviewboard.mozilla.org/r/76642/#review74762
Attachment #8788065 - Flags: review?(kaku) → review+
Comment on attachment 8788066 [details] Bug 1297590. Part 7 - remove the call to MaybeFinishDecodeFirstFrame() from OnNotDecoded(). https://reviewboard.mozilla.org/r/76644/#review74742
Attachment #8788066 - Flags: review?(kaku) → review+
Comment on attachment 8788067 [details] Bug 1297590. Part 8 - add an entry action for DECODER_STATE_DECODING_FIRSTFRAME. https://reviewboard.mozilla.org/r/76646/#review74764
Attachment #8788067 - Flags: review?(kaku) → review+
Attachment #8788068 - Flags: review?(kaku) → review+
Comment on attachment 8788069 [details] Bug 1297590. Part 10 - remove some mSentFirstFrameLoadedEvent checks for it is surely true when mState is DECODING. https://reviewboard.mozilla.org/r/76650/#review74766
Attachment #8788069 - Flags: review?(kaku) → review+
Comment on attachment 8788060 [details] Bug 1297590. Part 1 - add DECODER_STATE_DECODING_FIRSTFRAME to MDSM. https://reviewboard.mozilla.org/r/76632/#review74752 > Why plural type for the "frames" here? I expect for a singular type; also apply to the other comments in this patch. Each track has its own first frame. Since we have both audi and video tracks, we have 2 "first frames" from each track.
Thanks for the review!
Pushed by jwwang@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ce1129cc4eff Part 1 - add DECODER_STATE_DECODING_FIRSTFRAME to MDSM. r=kaku https://hg.mozilla.org/integration/autoland/rev/cd526ec1c208 Part 2 - change test `mState != DECODER_STATE_DECODING` to `mState != DECODER_STATE_DECODING && mState != DECODER_STATE_DECODING_FIRSTFRAME`. r=kaku https://hg.mozilla.org/integration/autoland/rev/9b2913a5a496 Part 3 - change test `mState >= DECODER_STATE_DECODING && mSentFirstFrameLoadedEvent` to `mState >= DECODER_STATE_DECODING`. r=kaku https://hg.mozilla.org/integration/autoland/rev/2ffa21b6fb98 Part 4 - change test `mState >= DECODER_STATE_DECODING` to `mState >= DECODER_STATE_DECODING_FIRSTFRAME`. r=kaku https://hg.mozilla.org/integration/autoland/rev/8a478b60c1f9 Part 5 - change some `SetState(DECODER_STATE_DECODING)` to `SetState(DECODER_STATE_DECODING_FIRSTFRAME)`. r=kaku https://hg.mozilla.org/integration/autoland/rev/6b05ec872e63 Part 6 - Move MaybeFinishDecodeFirstFrame() from case DECODER_STATE_DECODING to case DECODER_STATE_DECODING_FIRSTFRAME. r=kaku https://hg.mozilla.org/integration/autoland/rev/1aafc799929a Part 7 - remove the call to MaybeFinishDecodeFirstFrame() from OnNotDecoded(). r=kaku https://hg.mozilla.org/integration/autoland/rev/41ed9b0c1661 Part 8 - add an entry action for DECODER_STATE_DECODING_FIRSTFRAME. r=kaku https://hg.mozilla.org/integration/autoland/rev/13b4910c4880 Part 9 - fix MaybeFinishDecodeFirstFrame(). r=kaku https://hg.mozilla.org/integration/autoland/rev/fcbf7d45fbe4 Part 10 - remove some mSentFirstFrameLoadedEvent checks for it is surely true when mState is DECODING. r=kaku
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: