RESOLVED FIXED 146302
[Win] Update MediaPlayerPrivateAVFoundationCF::supportsType
https://bugs.webkit.org/show_bug.cgi?id=146302
Summary [Win] Update MediaPlayerPrivateAVFoundationCF::supportsType
Brent Fulgham
Reported 2015-06-24 17:25:27 PDT
Bring the Windows version of "supportsType" in line with the Mac/iOS version by using AVCFURLAssetIsPlayableExtendedMIMEType.
Attachments
Patch (7.43 KB, patch)
2015-06-24 17:32 PDT, Brent Fulgham
no flags
Patch (15.71 KB, patch)
2015-06-25 10:28 PDT, Brent Fulgham
eric.carlson: review+
Brent Fulgham
Comment 1 2015-06-24 17:25:43 PDT
Brent Fulgham
Comment 2 2015-06-24 17:32:49 PDT
WebKit Commit Bot
Comment 3 2015-06-24 17:34:22 PDT
Attachment 255534 [details] did not pass style-queue: ERROR: Source/WebCore/platform/graphics/avfoundation/cf/MediaPlayerPrivateAVFoundationCF.cpp:937: Place brace on its own line for function definitions. [whitespace/braces] [4] ERROR: Source/WebCore/platform/graphics/avfoundation/cf/MediaPlayerPrivateAVFoundationCF.cpp:983: Place brace on its own line for function definitions. [whitespace/braces] [4] Total errors found: 2 in 3 files If any of these errors are false positives, please file a bug against check-webkit-style.
Brent Fulgham
Comment 4 2015-06-24 17:34:39 PDT
I also fixed a null dereference I ran into while testing.
Eric Carlson
Comment 5 2015-06-24 18:04:57 PDT
Comment on attachment 255534 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=255534&action=review > Source/WebCore/platform/graphics/avfoundation/cf/MediaPlayerPrivateAVFoundationCF.cpp:910 > +static bool isUnsupportedMIMEType(const String& type) It looks like this and staticMIMETypeList are exactly the same as the ObjC versions. If so, can they be put into the base class and shared? > Source/WebCore/platform/graphics/avfoundation/cf/MediaPlayerPrivateAVFoundationCF.cpp:1379 > + if (audibleOptionLocale) > + m_languageOfPrimaryAudioTrack = CFLocaleGetIdentifier(audibleOptionLocale.get()); > + else > + m_languageOfPrimaryAudioTrack = emptyString(); > + You forgot to document this in the ChangeLog.
Brent Fulgham
Comment 6 2015-06-25 10:28:37 PDT
WebKit Commit Bot
Comment 7 2015-06-25 10:30:45 PDT
Attachment 255562 [details] did not pass style-queue: ERROR: Source/WebCore/platform/graphics/avfoundation/cf/MediaPlayerPrivateAVFoundationCF.cpp:912: Place brace on its own line for function definitions. [whitespace/braces] [4] ERROR: Source/WebCore/platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp:1108: Place brace on its own line for function definitions. [whitespace/braces] [4] Total errors found: 2 in 8 files If any of these errors are false positives, please file a bug against check-webkit-style.
Brent Fulgham
Comment 8 2015-06-25 12:38:30 PDT
Note You need to log in before you can comment on or make changes to this bug.