A media engine may deliver cues from in-band tracks every time the media data is parsed, but we should only add each cue to WebKit's TextTrack once.
<rdar://problem/12849532>
Created attachment 179813 [details] Proposed patch
Comment on attachment 179813 [details] Proposed patch Attachment 179813 [details] did not pass mac-ews (mac): Output: http://queues.webkit.org/results/15363937 New failing tests: media/track/track-in-band-cues-added-once.html
Created attachment 179828 [details] Skipped new tests on platforms that don't support it.
Attachment 179828 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'LayoutTests/ChangeLog', u'LayoutTests/medi..." exit_code: 1 Source/WebCore/html/track/InbandTextTrack.cpp:139: Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons. [readability/comparison_to_zero] [5] Source/WebCore/html/track/InbandTextTrack.cpp:163: One line control clauses should not use braces. [whitespace/braces] [4] Total errors found: 2 in 18 files If any of these errors are false positives, please file a bug against check-webkit-style.
Created attachment 179832 [details] Fix style errors
Comment on attachment 179832 [details] Fix style errors View in context: https://bugs.webkit.org/attachment.cgi?id=179832&action=review > Source/WebCore/html/track/InbandTextTrack.cpp:154 > + if (!cue) > + return false; > + if (cue->startTime() != startTime) > + return false; > + if (cue->endTime() != endTime) > + return false; > + if (cue->text() != content) > + return false; > + if (cue->cueSettings() != settings) > + return false; > + if (cue->id() != id) > + return false; Is there any reason you chose this form over a single if statement? It is easier to read :) > LayoutTests/media/track/track-in-band-cues-added-once.html:4 > + <head> > + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> No title?
Comment on attachment 179832 [details] Fix style errors Clearing flags on attachment: 179832 Committed r138017: <http://trac.webkit.org/changeset/138017>
All reviewed patches have been landed. Closing bug.