Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Sebastian Dröge
gst-plugins-base
Commits
8a736f6e
Commit
8a736f6e
authored
Aug 18, 2015
by
Sebastian Dröge
🍵
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
typefindfunctions: Add typefinder for TTML+XML
Used in DASH among other things, as SMPTE Timed Text.
parent
fd7724b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
gst/typefind/gsttypefindfunctions.c
gst/typefind/gsttypefindfunctions.c
+15
-0
No files found.
gst/typefind/gsttypefindfunctions.c
View file @
8a736f6e
...
...
@@ -655,6 +655,19 @@ smil_type_find (GstTypeFind * tf, gpointer unused)
}
}
/*** application/ttml+xml *****************************************************/
static
GstStaticCaps
ttml_xml_caps
=
GST_STATIC_CAPS
(
"application/ttml+xml"
);
#define TTML_XML_CAPS (gst_static_caps_get(&ttml_xml_caps))
static
void
ttml_xml_type_find
(
GstTypeFind
*
tf
,
gpointer
unused
)
{
if
(
xml_check_first_element
(
tf
,
"tt"
,
2
,
FALSE
))
{
gst_type_find_suggest
(
tf
,
GST_TYPE_FIND_MAXIMUM
,
TTML_XML_CAPS
);
}
}
/*** text/html ***/
static
GstStaticCaps
html_caps
=
GST_STATIC_CAPS
(
"text/html"
);
...
...
@@ -5629,6 +5642,8 @@ plugin_init (GstPlugin * plugin)
sdp_type_find
,
"sdp"
,
SDP_CAPS
,
NULL
,
NULL
);
TYPE_FIND_REGISTER
(
plugin
,
"application/smil"
,
GST_RANK_SECONDARY
,
smil_type_find
,
"smil"
,
SMIL_CAPS
,
NULL
,
NULL
);
TYPE_FIND_REGISTER
(
plugin
,
"application/ttml+xml"
,
GST_RANK_SECONDARY
,
ttml_xml_type_find
,
"ttml+xml"
,
TTML_XML_CAPS
,
NULL
,
NULL
);
TYPE_FIND_REGISTER
(
plugin
,
"application/xml"
,
GST_RANK_MARGINAL
,
xml_type_find
,
"xml"
,
GENERIC_XML_CAPS
,
NULL
,
NULL
);
TYPE_FIND_REGISTER_RIFF
(
plugin
,
"audio/x-wav"
,
GST_RANK_PRIMARY
,
"wav"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment