summaryrefslogtreecommitdiff
path: root/gst/typefind
diff options
context:
space:
mode:
authorThibault Saunier <tsaunier@igalia.com>2019-01-17 18:04:11 -0300
committerSebastian Dröge <slomo@coaxion.net>2019-01-29 15:56:12 +0000
commit1a5fb98e532c95d289d7ddc434c377e2d9eba976 (patch)
tree7f84eff30d27b34ff27cd0d1d296b31e502bdc11 /gst/typefind
parent361835979e9dd05d1757fb0b0e4fba4227d3aa97 (diff)
downloadgstreamer-plugins-base-1a5fb98e532c95d289d7ddc434c377e2d9eba976.tar.gz
typefindfunctions: Add a function to typefind xges files
Diffstat (limited to 'gst/typefind')
-rw-r--r--gst/typefind/gsttypefindfunctions.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/gst/typefind/gsttypefindfunctions.c b/gst/typefind/gsttypefindfunctions.c
index c91b63257..11cee9af5 100644
--- a/gst/typefind/gsttypefindfunctions.c
+++ b/gst/typefind/gsttypefindfunctions.c
@@ -683,6 +683,21 @@ dash_mpd_type_find (GstTypeFind * tf, gpointer unused)
}
}
+/*** application/xges ****************************************************/
+
+static GstStaticCaps xges_caps = GST_STATIC_CAPS ("application/xges");
+
+#define XGES_CAPS gst_static_caps_get (&xges_caps)
+
+static void
+xges_type_find (GstTypeFind * tf, gpointer unused)
+{
+ if (xml_check_first_element (tf, "ges", 3, FALSE)) {
+ gst_type_find_suggest (tf, GST_TYPE_FIND_MAXIMUM, XGES_CAPS);
+ }
+}
+
+
/*** application/sdp *********************************************************/
static GstStaticCaps sdp_caps = GST_STATIC_CAPS ("application/sdp");
@@ -5916,6 +5931,8 @@ plugin_init (GstPlugin * plugin)
GST_TYPE_FIND_MAXIMUM);
TYPE_FIND_REGISTER (plugin, "application/x-shockwave-flash",
GST_RANK_SECONDARY, swf_type_find, "swf,swfl", SWF_CAPS, NULL, NULL);
+ TYPE_FIND_REGISTER (plugin, "application/xges",
+ GST_RANK_PRIMARY, xges_type_find, "xges", XGES_CAPS, NULL, NULL);
TYPE_FIND_REGISTER (plugin, "application/dash+xml",
GST_RANK_PRIMARY, dash_mpd_type_find, "mpd,MPD", DASH_CAPS, NULL, NULL);
TYPE_FIND_REGISTER (plugin, "application/vnd.ms-sstr+xml",