avdemux: add xwma support
authorStéphane Cerveau <scerveau@collabora.com>
Fri, 6 Aug 2021 15:41:19 +0000 (17:41 +0200)
committerStéphane Cerveau <scerveau@collabora.com>
Mon, 9 Aug 2021 08:27:45 +0000 (10:27 +0200)
Add xwma tested with the media

b8edfb1e970ed7892f35b34a1ef36fee_wma.wav

from this ticket:

http://trac.ffmpeg.org/ticket/9358

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-libav/-/merge_requests/138>

docs/gst_plugins_cache.json
ext/libav/gstavdemux.c

index dbe88b7..534d57c 100644 (file)
                 "rank": "marginal",
                 "signals": {}
             },
+            "avdemux_xwma": {
+                "author": "Wim Taymans <wim@fluendo.com>, Ronald Bultje <rbultje@ronald.bitfreak.net>, Edward Hervey <bilboed@bilboed.com>",
+                "description": "libav Microsoft xWMA demuxer",
+                "hierarchy": [
+                    "avdemux_xwma",
+                    "GstElement",
+                    "GstObject",
+                    "GInitiallyUnowned",
+                    "GObject"
+                ],
+                "klass": "Codec/Demuxer",
+                "long-name": "libav Microsoft xWMA demuxer",
+                "pad-templates": {
+                    "audio_%%u": {
+                        "caps": "ANY",
+                        "direction": "src",
+                        "presence": "sometimes"
+                    },
+                    "sink": {
+                        "caps": "application/x-gst-av-xwma:\n",
+                        "direction": "sink",
+                        "presence": "always"
+                    },
+                    "video_%%u": {
+                        "caps": "ANY",
+                        "direction": "src",
+                        "presence": "sometimes"
+                    }
+                },
+                "rank": "marginal"
+            },
             "avdemux_yuv4mpegpipe": {
                 "author": "Wim Taymans <wim@fluendo.com>, Ronald Bultje <rbultje@ronald.bitfreak.net>, Edward Hervey <bilboed@bilboed.com>",
                 "description": "libav YUV4MPEG pipe demuxer",
index 80a0920..37de3fa 100644 (file)
@@ -2107,6 +2107,11 @@ gst_ffmpegdemux_register (GstPlugin * plugin)
     /* Set the rank of demuxers known to work to MARGINAL.
      * Set demuxers for which we already have another implementation to NONE
      * Set All others to NONE*/
+    /**
+     * element-avdemux_xwma
+     *
+     * Since: 1.20
+     */
     if (!strcmp (in_plugin->name, "wsvqa") ||
         !strcmp (in_plugin->name, "wsaud") ||
         !strcmp (in_plugin->name, "wc3movie") ||
@@ -2134,6 +2139,7 @@ gst_ffmpegdemux_register (GstPlugin * plugin)
         !strcmp (in_plugin->name, "daud") ||
         !strcmp (in_plugin->name, "avs") ||
         !strcmp (in_plugin->name, "aiff") ||
+        !strcmp (in_plugin->name, "xwma") ||
         !strcmp (in_plugin->name, "4xm") ||
         !strcmp (in_plugin->name, "yuv4mpegpipe") ||
         !strcmp (in_plugin->name, "pva") ||