Closed Bug 1649970 Opened 4 years ago Closed 4 years ago

[MediaControl-Windows] Correct the index for fetching next available image

Categories

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

Desktop
Windows
defect

Tracking

()

RESOLVED FIXED
mozilla80
Tracking Status
firefox-esr68 --- unaffected
firefox-esr78 --- unaffected
firefox78 --- unaffected
firefox79 --- unaffected
firefox80 --- fixed

People

(Reporter: chunmin, Assigned: chunmin)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

Suppose the current artwork is <img A, img B, img C> and Firefox is currently fetching img B, whose index is 1 in the artwork. If the artwork is updated to <img D, img B> before img B is fetched, then Firefox will skip fetching a new image since img B is also an acceptable choice in the new artwork. However, if Firefox fails to fetch img B, in the current implementation, a new image at (previous index + 1) would be fetched, as a fallback plan. In the above case, the index is 2, which is out of the bound of the new artwork.

Instead of caching the previous index of an image in the artwork and using the previous index plus 1 as the index of the next available image, the index of the next available image should be reset every the artwork is updated.

Summary: Correct the index for fetching next available image → [MediaControl-Windows] Correct the index for fetching next available image

Suppose the current artwork is <img A, img B, img C> and Firefox is
currently fetching img B, whose index is 1 in the artwork. If the
artwork is updated to <img D, img B> before img B is fetched, then
Firefox will skip fetching a new image since img B is also an acceptable
choice in the new artwork. However, if Firefox fails to fetch img B, in
the current implementation, a new image at (previous index + 1) would be
fetched, as a fallback plan. In the above case, the index is 2, which is
out of the bound of the new artwork.

Instead of caching the previous index of an image in the artwork and
using the the previous index plus 1 as the index of the next available
image, the index of the next available image should be reset every time
when artwork is updated

Set release status flags based on info from the regressing bug 1647434

Pushed by cchang@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d1934bb1c06d Correct the index for fetching next available image r=alwu
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla80
Has Regression Range: --- → yes
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: