Closed
Bug 1193603
Opened 9 years ago
Closed 9 years ago
Miscalculation in MediaMetadataManager::DispatchMetadataIfNeeded
Categories
(Core :: Audio/Video: Playback, defect)
Core
Audio/Video: Playback
Tracking
()
RESOLVED
FIXED
mozilla43
Tracking | Status | |
---|---|---|
firefox43 | --- | fixed |
People
(Reporter: jwwang, Assigned: jwwang)
Details
Attachments
(2 files)
https://hg.mozilla.org/mozilla-central/file/38c1ea9ccae3/dom/media/MediaMetadataManager.h#l48 aCurrentTime is in micro seconds. metadata->mPublishTime shouldn't be converted to seconds when comparing to aCurrentTime.
Assignee | ||
Comment 1•9 years ago
|
||
Bug 1193603. Part 1 - Fix indentation and include order.
Attachment #8646731 -
Flags: review?(jyavenard)
Assignee | ||
Comment 2•9 years ago
|
||
Bug 1193603. Part 2 - Fix miscalculation in converting micro seconds to seconds.
Attachment #8646732 -
Flags: review?(jyavenard)
Updated•9 years ago
|
Attachment #8646731 -
Flags: review?(jyavenard) → review+
Comment 3•9 years ago
|
||
Comment on attachment 8646731 [details] MozReview Request: Bug 1193603. Part 1 - Fix indentation and include order. r=jya. https://reviewboard.mozilla.org/r/15869/#review14115 Ship It! ::: dom/media/MediaMetadataManager.h:13 (Diff revision 1) > #include "nsAutoPtr.h" Could order them in alphabetical order while at it. with lowercase going first. seems to be the common standard
Updated•9 years ago
|
Attachment #8646732 -
Flags: review?(jyavenard)
Comment 4•9 years ago
|
||
Comment on attachment 8646732 [details] MozReview Request: Bug 1193603. Part 2 - Fix miscalculation in converting micro seconds to seconds. https://reviewboard.mozilla.org/r/15871/#review14117 ::: dom/media/MediaMetadataManager.h:49 (Diff revision 1) > - void DispatchMetadataIfNeeded(AbstractMediaDecoder* aDecoder, double aCurrentTime) { > + void DispatchMetadataIfNeeded(AbstractMediaDecoder* aDecoder, int64_t aCurrentTime) { please use TimeUnit objects instead. to prevent exactly those issues.
Assignee | ||
Comment 5•9 years ago
|
||
(In reply to Jean-Yves Avenard [:jya] from comment #3) > Could order them in alphabetical order while at it. > > with lowercase going first. > > seems to be the common standard Can you give some examples?
Comment 6•9 years ago
|
||
here that would give: #include "mozilla/LinkedList.h" #include "nsAutoPtr.h" #include "AbstractMediaDecoder.h" #include "VideoUtils.h"
Assignee | ||
Comment 7•9 years ago
|
||
I see. Thanks.
Assignee | ||
Comment 8•9 years ago
|
||
Comment on attachment 8646731 [details] MozReview Request: Bug 1193603. Part 1 - Fix indentation and include order. r=jya. Bug 1193603. Part 1 - Fix indentation and include order. r=jya.
Attachment #8646731 -
Attachment description: MozReview Request: Bug 1193603. Part 1 - Fix indentation and include order. → MozReview Request: Bug 1193603. Part 1 - Fix indentation and include order. r=jya.
Assignee | ||
Comment 9•9 years ago
|
||
Comment on attachment 8646732 [details] MozReview Request: Bug 1193603. Part 2 - Fix miscalculation in converting micro seconds to seconds. Bug 1193603. Part 2 - Fix miscalculation in converting micro seconds to seconds.
Attachment #8646732 -
Flags: review?(jyavenard)
Comment 10•9 years ago
|
||
Comment on attachment 8646732 [details] MozReview Request: Bug 1193603. Part 2 - Fix miscalculation in converting micro seconds to seconds. https://reviewboard.mozilla.org/r/15871/#review14119 ::: dom/media/MediaDecoder.h:585 (Diff revision 2) > - void QueueMetadata(int64_t aPublishTime, > + void QueueMetadata(media::TimeUnit aPublishTime, const media::TimeUnit& would be preferable r=me with changes: change prototyping with const media::TimeUnit& wherever possible (should be everwhere).
Attachment #8646732 -
Flags: review?(jyavenard) → review+
Assignee | ||
Comment 11•9 years ago
|
||
Thanks for the review.
Comment 12•9 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/6a1d0468f6d2 https://hg.mozilla.org/integration/mozilla-inbound/rev/93e1af0f8be1
Comment 13•9 years ago
|
||
this needs to be uplifted to 41
https://hg.mozilla.org/mozilla-central/rev/6a1d0468f6d2 https://hg.mozilla.org/mozilla-central/rev/93e1af0f8be1
Assignee: nobody → jwwang
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox43:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla43
Assignee | ||
Comment 15•9 years ago
|
||
(In reply to Jean-Yves Avenard [:jya] from comment #13) > this needs to be uplifted to 41 MediaMetadataManager is used by chained ogg files only which are rarely useful. Is it worth the effort to uplift to 41?
You need to log in
before you can comment on or make changes to this bug.
Description
•