Closed
Bug 1153686
Opened 9 years ago
Closed 9 years ago
HTMLMediaElement::UpdateReadyStateForData can lead to invalid audio format being reported.
Categories
(Core :: Audio/Video, defect)
Tracking
()
RESOLVED
FIXED
mozilla40
Tracking | Status | |
---|---|---|
firefox40 | --- | fixed |
People
(Reporter: jya, Assigned: jya)
References
Details
Attachments
(1 file, 1 obsolete file)
10.77 KB,
patch
|
roc
:
review+
|
Details | Diff | Splinter Review |
Under some circumstances, invalid audio track format can be reported. HTMLMediaElement::UpdateReadyStateForData calls MetadataLoaded with a dummy MediaInfo object that is only properly constructed for the video track. Problem was made worse by bug 1129263 as prior the invalid data was mostly ignored. The MediaInfo object passed, contains the information from the default AudioInfo constructor. As such we will only ever report audio with 44.1kHz, Stereo with a track ID of 2.
Assignee | ||
Comment 1•9 years ago
|
||
Remove mMediaSize class member (and use mMediaInfo instead) and various reworks. The actual fix for this bug will come for free with bug 1153049. Various fixes/cleans along the way introduced in bug 1129263. Fix 'resize' event being fired twice
Attachment #8591494 -
Flags: review?(roc)
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → jyavenard
Status: NEW → ASSIGNED
Assignee | ||
Comment 2•9 years ago
|
||
Comment on attachment 8591494 [details] [diff] [review] Remove redundant mMediaSize member this cause resize event to be fired out of order. better fix coming
Attachment #8591494 -
Attachment is obsolete: true
Attachment #8591494 -
Flags: review?(roc)
Assignee | ||
Comment 3•9 years ago
|
||
v2. https://treeherder.mozilla.org/#/jobs?repo=try&revision=c7e216283b7b
Attachment #8591564 -
Flags: review?(roc)
Comment on attachment 8591564 [details] [diff] [review] Remove redundant mMediaSize member Review of attachment 8591564 [details] [diff] [review]: ----------------------------------------------------------------- nice
Attachment #8591564 -
Flags: review?(roc) → review+
Assignee | ||
Comment 5•9 years ago
|
||
remote: https://hg.mozilla.org/integration/mozilla-inbound/rev/818a69e48d38
Comment 6•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/818a69e48d38
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla40
You need to log in
before you can comment on or make changes to this bug.
Description
•