Closed
Bug 1416085
Opened 7 years ago
Closed 7 years ago
Use Span<> to replace low level pointer arithmetic in MediaCacheStream::Read()
Categories
(Core :: Audio/Video: Playback, defect, P3)
Tracking
()
RESOLVED
FIXED
mozilla59
People
(Reporter: jwwang, Assigned: jwwang)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
No description provided.
Assignee | ||
Updated•7 years ago
|
Comment hidden (mozreview-request) |
Assignee | ||
Updated•7 years ago
|
Attachment #8927692 -
Flags: review?(bechen)
Comment 2•7 years ago
|
||
mozreview-review |
Comment on attachment 8927692 [details] Bug 1416085 - use Span<> to replace low level pointer arithmetic in Read(). https://reviewboard.mozilla.org/r/198970/#review204028
Attachment #8927692 -
Flags: review?(bechen) → review+
Assignee | ||
Updated•7 years ago
|
Attachment #8927692 -
Flags: review?(gsquelart)
Comment 3•7 years ago
|
||
mozreview-review |
Comment on attachment 8927692 [details] Bug 1416085 - use Span<> to replace low level pointer arithmetic in Read(). https://reviewboard.mozilla.org/r/198970/#review204256 ::: dom/media/MediaCache.cpp:2568 (Diff revision 1) > + } > > - // See if the data is available in the partial cache block of any > - // stream reading this resource. We need to do this in case there is > - // another stream with this resource that has all the data to the end of > - // the stream but the data doesn't end on a block boundary. > + // See if we can use the data in the partial block of any stream reading > + // this resource. Note we use the partial block only when it is completed, > + // that is reaching EOS. > + bool foundDataInPartialBLock = false; 'foundDataInPartialBLock' -> 'foundDataInPartialBlock' ('L' in 'Block' should not be capitalized) ::: dom/media/MediaCache.cpp:2587 (Diff revision 1) > - // Break for we've reached EOS and have nothing more to read. > - break; > + break; > - } > + } > > - if (mStreamOffset != streamOffset) { > + if (mStreamOffset != streamOffset) { > - // Updat mStreamOffset before we drop the lock. We need to run > + // Updat mStreamOffset before we drop the lock. We need to run 'Updat' -> 'Update' (mis-fix of a recent nit!)
Attachment #8927692 -
Flags: review?(gsquelart) → review+
Assignee | ||
Comment 4•7 years ago
|
||
Thanks for the reviews!
Comment hidden (mozreview-request) |
Pushed by jwwang@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/05f87748526f use Span<> to replace low level pointer arithmetic in Read(). r=bechen,gerald
Comment 7•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/05f87748526f
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox59:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla59
Updated•7 years ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•