Changeset 107482 in webkit


Ignore:
Timestamp:
Feb 11, 2012 10:36:37 AM (12 years ago)
Author:
commit-queue@webkit.org
Message:

[GStreamer] html5test.com says that gstreamer ports do not support WebM for audio
https://bugs.webkit.org/show_bug.cgi?id=78244

Patch by Martin Robinson <mrobinson@igalia.com> on 2012-02-11
Reviewed by Eric Seidel.

Specifically advertise support for audio/webm when we support the vorbis
audio codec. This is necessary because gstreamer doesn't advertise it.

  • platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:

(WebCore::mimeTypeCache): Add an override for audio/webm.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r107481 r107482  
     12012-02-11  Martin Robinson  <mrobinson@igalia.com>
     2
     3        [GStreamer] html5test.com says that gstreamer ports do not support WebM for audio
     4        https://bugs.webkit.org/show_bug.cgi?id=78244
     5
     6        Reviewed by Eric Seidel.
     7
     8        Specifically advertise support for audio/webm when we support the vorbis
     9        audio codec. This is necessary because gstreamer doesn't advertise it.
     10
     11        * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
     12        (WebCore::mimeTypeCache): Add an override for audio/webm.
     13
    1142012-02-11  Anders Carlsson  <andersca@apple.com>
    215
  • trunk/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp

    r99977 r107482  
    14951495                bool cached = false;
    14961496
    1497                 // These formats are supported by GStreamer, but not
    1498                 // correctly advertised.
     1497                // There isn't a one-to-one correspondance of caps to supported mime types in
     1498                // GStreamer, so we need to manually map between them. At some point in the future,
     1499                // GStreamer may reduce the differences between caps and mime types and we can
     1500                // remove mappings.
    14991501                if (g_str_equal(name, "video/x-h264")) {
    15001502                    cache.add(String("video/mp4"));
     
    15241526                    cache.add(String("audio/ogg"));
    15251527                    cache.add(String("audio/x-vorbis+ogg"));
     1528                    cache.add(String("audio/webm"));
    15261529                    cached = true;
    15271530                }
Note: See TracChangeset for help on using the changeset viewer.