[Webkit-unassigned] [Bug 39053] [GStreamer] cache media duration in READY instead of PLAYING

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu May 20 09:12:58 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=39053





--- Comment #6 from Philippe Normand <pnormand at igalia.com>  2010-05-20 09:12:58 PST ---
(In reply to comment #5)
> (In reply to comment #4)
> > Hum I don't agree ;)
> > 
> >  m_mediaDurationKnown is initially true
> 
> Ah, I see this now. "m_mediaDurationKnown" is probably not the best name for the flag because it is set when you *don't* know the duration.
> 

Right, I guess I should rename it, it is confusing indeed.

> In any case durationChanged() has similar logic plus it informs HTMLMediaElement when that the duration has changed. Is there any reason to not call it instead?

Yes. I did that at first, but IIRC durationchanged was emitted without the duration having actually changed. I will try to do some more tests with that approach.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list