Closed
Bug 1163924
Opened 11 years ago
Closed 11 years ago
Suspicious calculation of blockForStateMachineNotPlaying in MediaDecoder::UpdateStreamBlockingForStateMachinePlaying()
Categories
(Core :: Audio/Video, defect)
Core
Audio/Video
Tracking
()
RESOLVED
FIXED
mozilla41
| Tracking | Status | |
|---|---|---|
| firefox41 | --- | fixed |
People
(Reporter: jwwang, Assigned: jwwang)
References
Details
Attachments
(1 file)
|
1.27 KB,
patch
|
roc
:
review+
|
Details | Diff | Splinter Review |
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.
Me too. I don't remember why I wrote that.
Flags: needinfo?(roc)
| Assignee | ||
Comment 2•11 years ago
|
||
| Assignee | ||
Comment 3•11 years ago
|
||
Revert to changes that were intended in https://bugzilla.mozilla.org/page.cgi?id=splinter.html&bug=938022&attachment=8335072.
Attachment #8607311 -
Flags: review?(roc) → review+
| Assignee | ||
Comment 4•11 years ago
|
||
Thanks for the review!
Comment 6•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
status-firefox41:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla41
You need to log in
before you can comment on or make changes to this bug.
Description
•