Bug 197581

Summary: Adopt AVStreamDataParser.audiovisualMIMETypes
Product: WebKit Reporter: Jer Noble <jer.noble>
Component: New BugsAssignee: Jer Noble <jer.noble>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, eric.carlson, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch for landing
none
Patch for landing none

Description Jer Noble 2019-05-03 15:12:33 PDT
Adopt AVStreamDataParser.audiovisualMIMETypes
Comment 1 Radar WebKit Bug Importer 2019-05-03 15:12:58 PDT
<rdar://problem/50458981>
Comment 2 Jer Noble 2019-05-03 15:31:03 PDT
Created attachment 369005 [details]
Patch
Comment 3 Eric Carlson 2019-05-03 16:11:43 PDT
Comment on attachment 369005 [details]
Patch

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

> Source/WebCore/platform/graphics/avfoundation/objc/AVStreamDataParserMIMETypeCache.mm:77
> +    // AVStreamDataParser does not have an -isPlayableExtendedMIMEType: method, so just replace the container type
> +    // with a valid one from AVAssetMIMETypeCache and ask that cache if it can decode this type:

You should add a FIXME to remove this once they implement -isPlayableExtendedMIMEType

> Source/WebCore/platform/graphics/avfoundation/objc/AVStreamDataParserMIMETypeCache.mm:81
> +    ContentType originalType { mimeType };

Can't you just reuse "type" defined above?
Comment 4 Jer Noble 2019-05-06 10:34:13 PDT
(In reply to Eric Carlson from comment #3)
> Comment on attachment 369005 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=369005&action=review
> 
> > Source/WebCore/platform/graphics/avfoundation/objc/AVStreamDataParserMIMETypeCache.mm:77
> > +    // AVStreamDataParser does not have an -isPlayableExtendedMIMEType: method, so just replace the container type
> > +    // with a valid one from AVAssetMIMETypeCache and ask that cache if it can decode this type:
> 
> You should add a FIXME to remove this once they implement
> -isPlayableExtendedMIMEType

Will do.

> > Source/WebCore/platform/graphics/avfoundation/objc/AVStreamDataParserMIMETypeCache.mm:81
> > +    ContentType originalType { mimeType };
> 
> Can't you just reuse "type" defined above?

Yep!
Comment 5 Jer Noble 2019-05-06 11:08:48 PDT
Created attachment 369142 [details]
Patch for landing
Comment 6 Jer Noble 2019-05-06 12:36:24 PDT
Created attachment 369157 [details]
Patch for landing
Comment 7 WebKit Commit Bot 2019-05-06 15:22:32 PDT
Comment on attachment 369157 [details]
Patch for landing

Clearing flags on attachment: 369157

Committed r244980: <https://trac.webkit.org/changeset/244980>
Comment 8 WebKit Commit Bot 2019-05-06 15:22:33 PDT
All reviewed patches have been landed.  Closing bug.