When playing some videos from browser and pushing the home key, PDM doesn't enter dormant and codec is not released.
User experience impacted: If user watch video from browsers and then push the home key to play a video file in video app, video app will show "Another app is currently using the video player".
This should be caused by the Bug 1163458. The root cause is MOZ_GONK_MEDIACODEC is not defined dom/media, so READER_DORMANT_HEURISTIC will not be defined in  and subsequently MediaFormatReader's IsDormantNeeded() returns false. https://dxr.mozilla.org/mozilla-central/source/dom/media/MediaFormatReader.h#20 https://dxr.mozilla.org/mozilla-central/source/dom/media/MediaFormatReader.cpp#1288
Created attachment 8610472 [details] [diff] [review] Add-the-define-MOZ_GONK_MEDIACODEC-to-dom/media.patch Root cause: Per comment 2. Solution: Add the define, MOZ_GONK_MEDIACODEC, to dom/media.
Attachment #8610472 - Flags: review?(cpearce)
Attachment #8610472 - Flags: review?(cpearce) → review+
Created attachment 8610985 [details] [diff] [review] Add-the-define-MOZ_GONK_MEDIACODEC-to-dom-media.patch Thanks for cpearce's review! Carry r+ from cpearce.
Test results are all green.
Status: NEW → RESOLVED
Last Resolved: 4 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.