Closed
Bug 1214469
Opened 10 years ago
Closed 10 years ago
[EME] gmp-clearkey doesn't account for mNumInputTasks when flushing
Categories
(Core :: Audio/Video: Playback, defect, P2)
Core
Audio/Video: Playback
Tracking
()
RESOLVED
FIXED
mozilla44
People
(Reporter: cpearce, Assigned: cpearce)
References
Details
Attachments
(1 file)
1.12 KB,
patch
|
mozbugz
:
review+
Sylvestre
:
approval-mozilla-aurora+
Sylvestre
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
From VideoDecoder.cpp:
void
VideoDecoder::DecodeTask(GMPVideoEncodedFrame* aInput)
{
CK_LOGD("VideoDecoder::DecodeTask");
AutoReleaseVideoFrame ensureFrameReleased(aInput);
HRESULT hr;
if (mIsFlushing) {
CK_LOGD("VideoDecoder::DecodeTask rejecting frame: flushing.");
return;
}
{
AutoLock lock(mMutex);
mNumInputTasks--;
assert(mNumInputTasks >= 0);
}
// ...
The problem here is that if mIsFlushing it true, we won't decrement mNumInputTasks, and that means we won't call the input exhausted callback further down when we need to.
I bet this is the source of our timeouts.
Assignee | ||
Comment 1•10 years ago
|
||
Ensure we'll decrement mNumInputTasks once for every DecodeTask.
https://treeherder.mozilla.org/#/jobs?repo=try&revision=88e189600d93
Attachment #8673441 -
Flags: review?(gsquelart)
Assignee | ||
Comment 2•10 years ago
|
||
If this fixes our tests on Windows, we should re-enable them, and uplift.
Flags: needinfo?(cpearce)
Attachment #8673441 -
Flags: review?(gsquelart) → review+
Status: NEW → RESOLVED
Closed: 10 years ago
status-firefox44:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla44
Assignee | ||
Comment 5•10 years ago
|
||
Comment on attachment 8673441 [details] [diff] [review]
Patch: Ensure gmp-clearkey accounts for mNumInputTasks when flushing.
Approval Request Comment
[Feature/regressing bug #]: EME
[User impact if declined]: This fixes intermittent timeouts in EME mochitests. This only affects clearkey EME, not Adobe EME.
[Describe test coverage new/current, TreeHerder]: Lots of EME mochitest, which are greener with this patch!
[Risks and why]: Low.
[String/UUID change made/needed]: None.
Attachment #8673441 -
Flags: approval-mozilla-beta?
Attachment #8673441 -
Flags: approval-mozilla-aurora?
Updated•10 years ago
|
status-firefox42:
--- → affected
status-firefox43:
--- → affected
Comment 6•10 years ago
|
||
Comment on attachment 8673441 [details] [diff] [review]
Patch: Ensure gmp-clearkey accounts for mNumInputTasks when flushing.
Improve the testsuite, taking it.
Should be in 42 beta 7
Attachment #8673441 -
Flags: approval-mozilla-beta?
Attachment #8673441 -
Flags: approval-mozilla-beta+
Attachment #8673441 -
Flags: approval-mozilla-aurora?
Attachment #8673441 -
Flags: approval-mozilla-aurora+
Comment 7•10 years ago
|
||
Comment 8•10 years ago
|
||
Assignee | ||
Updated•10 years ago
|
Flags: needinfo?(cpearce)
You need to log in
before you can comment on or make changes to this bug.
Description
•