Closed Bug 1163924 Opened 11 years ago Closed 11 years ago

Suspicious calculation of blockForStateMachineNotPlaying in MediaDecoder::UpdateStreamBlockingForStateMachinePlaying()

Categories

(Core :: Audio/Video, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla41
Tracking Status
firefox41 --- fixed

People

(Reporter: jwwang, Assigned: jwwang)

References

Details

Attachments

(1 file)

In the patch of https://bugzilla.mozilla.org/page.cgi?id=splinter.html&bug=938022&attachment=8335072, it says bool blockForStateMachineNotPlaying = mDecoderStateMachine && !mDecoderStateMachine->IsPlaying(); However, in the patch uplifted to inbound (https://hg.mozilla.org/integration/mozilla-inbound/rev/4d75ae037706#l1.38), it says bool blockForStateMachineNotPlaying = mDecoderStateMachine && !mDecoderStateMachine->IsPlaying() && mDecoderStateMachine->GetState() != MediaDecoderStateMachine::DECODER_STATE_COMPLETED; It seems wrong to me that we don't block when state is COMPLETED even when IsPlaying() returns false.
Blocks: 1163467
Flags: needinfo?(roc)
Me too. I don't remember why I wrote that.
Flags: needinfo?(roc)
Assignee: nobody → jwwang
Status: NEW → ASSIGNED
Attachment #8607311 - Flags: review?(roc)
Thanks for the review!
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla41
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: