[Webkit-unassigned] [Bug 150669] New: MediaPlayer::getSupportedTypes only returns types from the last engine registered

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Oct 29 06:40:02 PDT 2015


https://bugs.webkit.org/show_bug.cgi?id=150669

            Bug ID: 150669
           Summary: MediaPlayer::getSupportedTypes only returns types from
                    the last engine registered
    Classification: Unclassified
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Media Elements
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: eric.carlson at apple.com

MediaPlayer::getSupportedTypes is used by MIMETypeRegistry::initializeSupportedMediaMIMETypes to build a static list of all media MIME types supported by a port. MediaPlayer::getSupportedTypes takes a HashSet<String>&, which it passes to ever registered media engine's getSupportedTypes factory method, which of course means that each call overwrites the values added by the previous engine. 

This works as long as every registered media engine supports the same set of MIME types, or the last engine registered is a superset of them all. r191721 added a MediaStream engine to the Mac port. This engine happens to get registered last, so MediaPlayer::getSupportedTypes returns an empty hash set.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20151029/3c1d5c48/attachment.html>


More information about the webkit-unassigned mailing list