Bug 310616
| Summary: | MediaSource should actually cache the response | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Jean-Yves Avenard [:jya] <jean-yves.avenard> |
| Component: | Media | Assignee: | Jean-Yves Avenard [:jya] <jean-yves.avenard> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Jean-Yves Avenard [:jya]
AVStreamDataParserMIMETypeCache::canDecodeExtendedType
just calls [AVStreamDataParser canParseExtendedMIMEType] to check if the type is supported or not and if not will call mediaStrategy()->canDecodeExtendedType which will issue a sync IPC call to the GPUP.
the results of canDecodeExtendedType is never cached and so we end up making IPC sync call to the GPUP for all queries.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/173224564>
Jean-Yves Avenard [:jya]
Rename title, caching the entire lots of MediaSource.isTypeSupported makes more sense, it can be made thread-safe avoiding the sync dispatch to the main thread,
Jean-Yves Avenard [:jya]
Pull request: https://github.com/WebKit/WebKit/pull/61328
EWS
Committed 309981@main (877c1eacc4bb): <https://commits.webkit.org/309981@main>
Reviewed commits have been landed. Closing PR #61328 and removing active labels.