Bug 135680 - [Mac, iOS] Captions are appearing multiple times during repeated video play through
Summary: [Mac, iOS] Captions are appearing multiple times during repeated video play t...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Brent Fulgham
URL:
Keywords: InRadar
Depends on: 135332
Blocks:
  Show dependency treegraph
 
Reported: 2014-08-06 17:38 PDT by Brent Fulgham
Modified: 2014-08-07 09:23 PDT (History)
11 users (show)

See Also:


Attachments
Patch (7.19 KB, patch)
2014-08-06 18:25 PDT, Brent Fulgham
eric.carlson: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Brent Fulgham 2014-08-06 17:38:12 PDT
I broke the cue comparison logic used to determine if newly encountered cues already exist in our set of cues for Generic cues (see Bug 135332 for why I did this).
Comment 1 Brent Fulgham 2014-08-06 17:38:39 PDT
<rdar://problem/17926802>
Comment 2 Brent Fulgham 2014-08-06 17:39:45 PDT
For Generic Cues (especially in these paint-on/roll-up modes) we want one set of ordering to decide which cues to render on screen first, and another for maintaining the time-ordered cue set for deciding whether a given cue is something we already know about.
Comment 3 Brent Fulgham 2014-08-06 18:25:23 PDT
Created attachment 236161 [details]
Patch
Comment 4 Eric Carlson 2014-08-06 18:35:47 PDT
Comment on attachment 236161 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=236161&action=review

> Source/WebCore/html/track/TextTrackCueGeneric.cpp:218
> +bool TextTrackCueGeneric::isOrderedBeforeDuringDisplay(const TextTrackCue* that) const

As we discussed on irc, maybe "isPositionedAbove" would be clearer?
Comment 5 Brent Fulgham 2014-08-07 09:21:24 PDT
(In reply to comment #4)
> (From update of attachment 236161 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=236161&action=review
> 
> > Source/WebCore/html/track/TextTrackCueGeneric.cpp:218
> > +bool TextTrackCueGeneric::isOrderedBeforeDuringDisplay(const TextTrackCue* that) const
> 
> As we discussed on irc, maybe "isPositionedAbove" would be clearer?

Will do!
Comment 6 Brent Fulgham 2014-08-07 09:23:23 PDT
Committed r172213: <http://trac.webkit.org/changeset/172213>
Comment 7 Brent Fulgham 2014-08-07 09:23:47 PDT
(In reply to comment #6)
> Committed r172213: <http://trac.webkit.org/changeset/172213>

Let's keep an eye on the Mavericks test I reactivated. If they continue to fail we can turn them back off.