[GStreamer] media/media-can-play-mp3.html fails
https://bugs.webkit.org/show_bug.cgi?id=216692

Patch by Philippe Normand <pnormand@igalia.com> on 2020-09-21
Reviewed by Darin Adler.

Add mp3 to supported codecs map when a valid decoder has been
found by the GStreamer registry scanner.

* platform/graphics/gstreamer/GStreamerRegistryScanner.cpp:
(WebCore::GStreamerRegistryScanner::initialize):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@267335 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/Source/WebCore/ChangeLog b/Source/WebCore/ChangeLog
index 24cd38d..3708471 100644
--- a/Source/WebCore/ChangeLog
+++ b/Source/WebCore/ChangeLog
@@ -1,3 +1,16 @@
+2020-09-21  Philippe Normand  <pnormand@igalia.com>
+
+        [GStreamer] media/media-can-play-mp3.html fails
+        https://bugs.webkit.org/show_bug.cgi?id=216692
+
+        Reviewed by Darin Adler.
+
+        Add mp3 to supported codecs map when a valid decoder has been
+        found by the GStreamer registry scanner.
+
+        * platform/graphics/gstreamer/GStreamerRegistryScanner.cpp:
+        (WebCore::GStreamerRegistryScanner::initialize):
+
 2020-09-20  Sam Weinig  <weinig@apple.com>
 
         Performance.navigation and Performance.timing are incorrectly exposed to workers
diff --git a/Source/WebCore/platform/graphics/gstreamer/GStreamerRegistryScanner.cpp b/Source/WebCore/platform/graphics/gstreamer/GStreamerRegistryScanner.cpp
index 6f97b32..fb154a8 100644
--- a/Source/WebCore/platform/graphics/gstreamer/GStreamerRegistryScanner.cpp
+++ b/Source/WebCore/platform/graphics/gstreamer/GStreamerRegistryScanner.cpp
@@ -272,6 +272,7 @@
         m_mimeTypeSet.add(AtomString("audio/mp3"));
         m_mimeTypeSet.add(AtomString("audio/x-mp3"));
         m_codecMap.add(AtomString("audio/mp3"), false);
+        m_codecMap.add(AtomString("mp3"), false);
     }
 
     if (hasElementForMediaType(m_audioDecoderFactories, "audio/mpeg, mpegversion=(int)2")) {