Changeset 227121 in webkit
- Timestamp:
- Jan 17, 2018 9:55:55 PM (6 years ago)
- Location:
- trunk
- Files:
-
- 6 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r227103 r227121 1 2018-01-17 Jer Noble <jer.noble@apple.com> 2 3 WebVTT served via HLS never results in cues 4 https://bugs.webkit.org/show_bug.cgi?id=181773 5 6 Reviewed by Eric Carlson. 7 8 * http/tests/media/hls/hls-webvtt-tracks-expected.txt: Added. 9 * http/tests/media/hls/hls-webvtt-tracks.html: Added. 10 * http/tests/media/resources/hls/subtitles/fileSequence0.webvtt: Added. 11 * http/tests/media/resources/hls/subtitles/prog_index.m3u8: Added. 12 * http/tests/media/resources/hls/test-webvtt.m3u8: Added. 13 1 14 2018-01-17 John Wilander <wilander@apple.com> 2 15 -
trunk/Source/WebCore/ChangeLog
r227103 r227121 1 2018-01-17 Jer Noble <jer.noble@apple.com> 2 3 WebVTT served via HLS never results in cues 4 https://bugs.webkit.org/show_bug.cgi?id=181773 5 6 Reviewed by Eric Carlson. 7 8 Test: http/tests/media/hls/hls-webvtt-tracks.html 9 10 Three independant errors conspired to keep in-band WebVTT samples from parsing: 11 12 - The definition of ISOWebVTTCue::boxTypeName() was incorrect. 13 - ISOWebVTTCue::parse() didn't call it's superclass's parse() method (leading to an incorrect size and offset). 14 - Use String::fromUTF8() rather than String.adopt(StringVector&&). 15 16 * platform/graphics/iso/ISOVTTCue.cpp: 17 (WebCore::ISOWebVTTCue::parse): 18 * platform/graphics/iso/ISOVTTCue.h: 19 (WebCore::ISOWebVTTCue::boxTypeName): 20 1 21 2018-01-17 John Wilander <wilander@apple.com> 2 22 -
trunk/Source/WebCore/platform/graphics/iso/ISOVTTCue.cpp
r225764 r227121 59 59 } 60 60 61 StringVector<LChar> characters;61 Vector<LChar> characters; 62 62 characters.reserveInitialCapacity((size_t)characterCount); 63 63 while (characterCount--) { … … 68 68 } 69 69 70 m_contents .adopt(WTFMove(characters));70 m_contents = String::fromUTF8(characters); 71 71 offset = localOffset; 72 72 return true; … … 89 89 bool ISOWebVTTCue::parse(DataView& view, unsigned& offset) 90 90 { 91 if (!ISOBox::parse(view, offset)) 92 return false; 93 91 94 ISOStringBox stringBox; 92 95 -
trunk/Source/WebCore/platform/graphics/iso/ISOVTTCue.h
r225764 r227121 43 43 ISOWebVTTCue(const MediaTime& presentationTime, const MediaTime& duration); 44 44 45 static FourCC boxTypeName() { return "vt cc"; }45 static FourCC boxTypeName() { return "vttc"; } 46 46 47 47 const MediaTime& presentationTime() const { return m_presentationTime; }
Note: See TracChangeset
for help on using the changeset viewer.