mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-25 19:25:43 +00:00
f17dd305d6
Continuing the work of replacing MIME strings with MediaContainerType, starting from MediaResource and following the dependencies. Most changes are mechanical: Just change ns*String into MediaContainerType, and MIME string literals into MEDIAMIMETYPE("a/b"). Some checks for empty/invalid strings and lowercase comparisons can go, thanks to the always-valid always-lowercase-MIME invariants of MediaContainerType. One special case in is MediaSourceResource, which used to have an empty string as its type (because its own type is not relevant, but its SourceBuffers carry types). Because the inherited GetContentType *must* be overridden, and must return a MediaContainerType, we needed a valid type even though it should not be seen in the real world. I've chosen "application/x.mediasource" for that. MozReview-Commit-ID: 1aCH75Kh2e6 --HG-- extra : rebase_source : 0d9cd9b69c264e5dcfc3845f80ee107f4bcbcd9a |
||
---|---|---|
.. | ||
moz.build | ||
TestContainerParser.cpp |