[Webkit-unassigned] [Bug 89514] Add url to supportsType
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Jun 22 05:47:45 PDT 2012
https://bugs.webkit.org/show_bug.cgi?id=89514
--- Comment #14 from Danilo Cesar Lemes de Paula <danilo.cesar at collabora.co.uk> 2012-06-22 05:47:43 PST ---
(In reply to comment #12)
> (From update of attachment 148780 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=148780&action=review
>
> > Source/WebCore/ChangeLog:12
> > + When a blob is created as the address for a Media Stream, the MediaEngine
> > + will ask it's players if they support that media. However, a player built
> > + for MediaStream needs to know to URL to decide if it's or it's not supported.
>
> Nit: "if it's or it's not supported" is slightly awkward, I suggest something like "if it is supported or not"
Agreed
>
> > Source/WebCore/platform/graphics/MediaPlayer.h:426
> > +typedef MediaPlayer::SupportsType (*MediaEngineSupportsType)(const String& type, const String& codecs, const String& keySystem, const String& url);
>
> Why not pass the url as a KURL rather than as a string?
I was using String because it was enough and all the other parameters were Strings. But I agree what a KURL is semantic better and might be needed/wanted in the future. Fixed
>
> > Source/WebCore/platform/graphics/avfoundation/cf/MediaPlayerPrivateAVFoundationCF.cpp:731
> > +MediaPlayer::SupportsType MediaPlayerPrivateAVFoundationCF::supportsType(const String& type, const String& codecs, const String& url)
> > {
> > + UNUSED_PARAM(url);
> > +
>
> The "UNUSED_PARAM()" will be unnecessary if you leave out the parameter name, e.g.. const String& codecs, const String&)
Right. Fixed for all code.
--
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