| Summary: | [Win] Implement parts of the AVFOUNDATION_LOADER_DELEGATE logic for Windows | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Brent Fulgham <bfulgham> | ||||||||
| Component: | Media | Assignee: | Brent Fulgham <bfulgham> | ||||||||
| Status: | RESOLVED FIXED | ||||||||||
| Severity: | Normal | CC: | bfulgham, bunhere, calvaris, cdumez, commit-queue, eric.carlson, glenn, gyuyoung.kim, jer.noble, philipj, sergio, webkit-bug-importer | ||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||
| Version: | 528+ (Nightly build) | ||||||||||
| Hardware: | Unspecified | ||||||||||
| OS: | Unspecified | ||||||||||
| Bug Depends on: | |||||||||||
| Bug Blocks: | 137710 | ||||||||||
| Attachments: |
|
||||||||||
|
Description
Brent Fulgham
2014-06-27 15:26:37 PDT
Created attachment 234026 [details]
Patch
Created attachment 234029 [details]
Patch
Attachment 234029 [details] did not pass style-queue:
ERROR: Source/WebCore/platform/graphics/avfoundation/cf/WebCoreAVCFResourceLoader.cpp:40: Alphabetical sorting problem. [build/include_order] [4]
ERROR: Source/WebCore/platform/graphics/avfoundation/cf/WebCoreAVCFResourceLoader.cpp:45: Bad include order. Mixing system and custom headers. [build/include_order] [4]
ERROR: Source/WebCore/platform/graphics/avfoundation/cf/CDMSessionAVFoundationCF.cpp:43: Bad include order. Mixing system and custom headers. [build/include_order] [4]
Total errors found: 3 in 20 files
If any of these errors are false positives, please file a bug against check-webkit-style.
(In reply to comment #4) > Attachment 234029 [details] did not pass style-queue: > > > ERROR: Source/WebCore/platform/graphics/avfoundation/cf/WebCoreAVCFResourceLoader.cpp:40: Alphabetical sorting problem. [build/include_order] [4] > ERROR: Source/WebCore/platform/graphics/avfoundation/cf/WebCoreAVCFResourceLoader.cpp:45: Bad include order. Mixing system and custom headers. [build/include_order] [4] > ERROR: Source/WebCore/platform/graphics/avfoundation/cf/CDMSessionAVFoundationCF.cpp:43: Bad include order. Mixing system and custom headers. [build/include_order] [4] > Total errors found: 3 in 20 files These are necessary violations of style, and are explained in the comments in the source file. View in context: https://bugs.webkit.org/attachment.cgi?id=234026&action=review > Source/WebCore/Modules/encryptedmedia/CDMPrivateMediaPlayer.cpp:-27 > -#import "config.h" > -#import "CDMPrivateMediaPlayer.h" Oops :-O > Source/WebCore/platform/graphics/avfoundation/cf/MediaPlayerPrivateAVFoundationCF.cpp:153 > + RetainPtr<AVCFAssetResourceLoadingRequestRef> takeRequestForKeyURI(const String&); Should this be a PassRefPtr<>? > Source/WebCore/platform/graphics/avfoundation/cf/MediaPlayerPrivateAVFoundationCF.cpp:927 > +#ifndef NDEBUG > + RetainPtr<CFURLRequestRef> urlRequest = AVCFAssetResourceLoadingRequestGetURLRequest(avRequest); > + RetainPtr<CFURLRef> requestURL = CFURLRequestGetURL(urlRequest.get()); > + RetainPtr<CFStringRef> schemeRef = adoptCF(CFURLCopyScheme(requestURL.get())); > + > + String scheme = schemeRef.get(); > +#endif Did you mean to LOG() the scheme? If not, what does this code do? > Source/WebCore/platform/graphics/avfoundation/cf/MediaPlayerPrivateAVFoundationCF.cpp:1799 > + String keyURI = keyURIRef.get(); This is only used inside of #if ENABLE(ENCRYPTED_MEDIA_V2) so it will fail in a release build if ENABLE_ ENCRYPTED_MEDIA_V2 isn't defined. > Source/WebCore/platform/graphics/avfoundation/cf/MediaPlayerPrivateAVFoundationCF.h:2 > + * Copyright (C) 2011, 2013, 2014 Apple Inc. All rights reserved. Nit: 2013-2014. Created attachment 234030 [details]
Patch
Attachment 234030 [details] did not pass style-queue:
ERROR: Source/WebCore/platform/graphics/avfoundation/cf/WebCoreAVCFResourceLoader.cpp:40: Alphabetical sorting problem. [build/include_order] [4]
ERROR: Source/WebCore/platform/graphics/avfoundation/cf/WebCoreAVCFResourceLoader.cpp:45: Bad include order. Mixing system and custom headers. [build/include_order] [4]
ERROR: Source/WebCore/platform/graphics/avfoundation/cf/CDMSessionAVFoundationCF.cpp:43: Bad include order. Mixing system and custom headers. [build/include_order] [4]
Total errors found: 3 in 20 files
If any of these errors are false positives, please file a bug against check-webkit-style.
Committed r170562: <http://trac.webkit.org/changeset/170562> |