[GStreamer][MSE] Trim space between codecs
[WebKit-https.git] / Source / WebCore / ChangeLog
index cf37a0a..cb00f10 100644 (file)
@@ -1,3 +1,30 @@
+2017-10-27  Alicia Boya GarcĂ­a  <aboya@igalia.com>
+
+        [GStreamer][MSE] Trim space between codecs
+        https://bugs.webkit.org/show_bug.cgi?id=178160
+
+        Reviewed by Xabier Rodriguez-Calvar.
+
+        Modify supportsCodecs() to accept a Vector<String> instead of
+        receiving a string and parsing itself.
+
+        This improves passrate for `mediasource-is-type-supported` as it
+        ensures that whitespace between codecs is now trimmed and codec
+        strings such as `video/webm;codecs="opus, vp9"` are matched as a valid
+        type, as required by the spec.
+
+        This patch also renames supportCodecs() to supportAllCodecs() and adds
+        a new variant, supportCodec(), that checks for support of an
+        individual codec.
+
+        * platform/graphics/gstreamer/mse/AppendPipeline.cpp:
+        (WebCore::AppendPipeline::parseDemuxerSrcPadCaps):
+        * platform/graphics/gstreamer/mse/MediaPlayerPrivateGStreamerMSE.cpp:
+        (WebCore::MediaPlayerPrivateGStreamerMSE::supportsCodec):
+        (WebCore::MediaPlayerPrivateGStreamerMSE::supportsAllCodecs):
+        (WebCore::MediaPlayerPrivateGStreamerMSE::supportsType):
+        * platform/graphics/gstreamer/mse/MediaPlayerPrivateGStreamerMSE.h:
+
 2017-10-27  Michael Catanzaro  <mcatanzaro@igalia.com>
 
         [GTK] Crash in WebCore::SelectionRangeData::apply