Bug 310775
| Summary: | Unnecessary AVStreamDataParser allocation when querying if a mime type is supported. | ||
|---|---|---|---|
| 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]
For historical reason, to check MSE support we always call allocAVStreamDataParserInstance and init.
On iPhone this used to return `nil` as this SPI was disabled on iPhone but enabled on iPad and to differentiate the `init` method returned a difference value.
This is no longer true on any of our currently supported platforms.
It can be removed.
In the CPLT tests it accounts for a 75ms total overhead.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/173383289>
Jean-Yves Avenard [:jya]
Pull request: https://github.com/WebKit/WebKit/pull/61382
EWS
Committed 309970@main (1e3921ec8629): <https://commits.webkit.org/309970@main>
Reviewed commits have been landed. Closing PR #61382 and removing active labels.