subparsers: Give proper category to subtitle "decoders"

Some subtitle "decoders" had a wrong category of "Parser", which `parsebin`
relies on to identify elements which do not *decode* streams but *parse* them.

This would cause such subtitle decoders to be plugged in within parsebin,
preventing the original stream to be properly used by (more efficient)
downstream decoders or subtitle renderers.

Fixes #1757

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6153>
This commit is contained in:
Edward Hervey 2024-02-20 16:00:07 +01:00 committed by GStreamer Marge Bot
parent bf4cf0d9c1
commit 34a1245905
5 changed files with 6 additions and 6 deletions

View file

@ -241374,7 +241374,7 @@
"GInitiallyUnowned", "GInitiallyUnowned",
"GObject" "GObject"
], ],
"klass": "Codec/Parser/Subtitle", "klass": "Codec/Decoder/Subtitle",
"long-name": "TTML subtitle parser", "long-name": "TTML subtitle parser",
"pad-templates": { "pad-templates": {
"sink": { "sink": {

View file

@ -129,7 +129,7 @@ gst_ttml_parse_class_init (GstTtmlParseClass * klass)
gst_element_class_add_pad_template (element_class, gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&src_templ)); gst_static_pad_template_get (&src_templ));
gst_element_class_set_static_metadata (element_class, gst_element_class_set_static_metadata (element_class,
"TTML subtitle parser", "Codec/Parser/Subtitle", "TTML subtitle parser", "Codec/Decoder/Subtitle",
"Parses TTML subtitle files", "Parses TTML subtitle files",
"GStreamer maintainers <gstreamer-devel@lists.sourceforge.net>, " "GStreamer maintainers <gstreamer-devel@lists.sourceforge.net>, "
"Chris Bass <dash@rd.bbc.co.uk>"); "Chris Bass <dash@rd.bbc.co.uk>");

View file

@ -13010,7 +13010,7 @@
"GInitiallyUnowned", "GInitiallyUnowned",
"GObject" "GObject"
], ],
"klass": "Codec/Parser/Subtitle", "klass": "Codec/Decoder/Subtitle",
"long-name": "SSA Subtitle Parser", "long-name": "SSA Subtitle Parser",
"pad-templates": { "pad-templates": {
"sink": { "sink": {
@ -13036,7 +13036,7 @@
"GInitiallyUnowned", "GInitiallyUnowned",
"GObject" "GObject"
], ],
"klass": "Codec/Parser/Subtitle", "klass": "Codec/Decoder/Subtitle",
"long-name": "Subtitle parser", "long-name": "Subtitle parser",
"pad-templates": { "pad-templates": {
"sink": { "sink": {

View file

@ -108,7 +108,7 @@ gst_ssa_parse_class_init (GstSsaParseClass * klass)
gst_element_class_add_static_pad_template (element_class, &sink_templ); gst_element_class_add_static_pad_template (element_class, &sink_templ);
gst_element_class_add_static_pad_template (element_class, &src_templ); gst_element_class_add_static_pad_template (element_class, &src_templ);
gst_element_class_set_static_metadata (element_class, gst_element_class_set_static_metadata (element_class,
"SSA Subtitle Parser", "Codec/Parser/Subtitle", "SSA Subtitle Parser", "Codec/Decoder/Subtitle",
"Parses SSA subtitle streams", "Parses SSA subtitle streams",
"Tim-Philipp Müller <tim centricular net>"); "Tim-Philipp Müller <tim centricular net>");

View file

@ -137,7 +137,7 @@ gst_sub_parse_class_init (GstSubParseClass * klass)
gst_element_class_add_static_pad_template (element_class, &sink_templ); gst_element_class_add_static_pad_template (element_class, &sink_templ);
gst_element_class_add_static_pad_template (element_class, &src_templ); gst_element_class_add_static_pad_template (element_class, &src_templ);
gst_element_class_set_static_metadata (element_class, gst_element_class_set_static_metadata (element_class,
"Subtitle parser", "Codec/Parser/Subtitle", "Subtitle parser", "Codec/Decoder/Subtitle",
"Parses subtitle (.sub) files into text streams", "Parses subtitle (.sub) files into text streams",
"Gustavo J. A. M. Carneiro <gjc@inescporto.pt>, " "Gustavo J. A. M. Carneiro <gjc@inescporto.pt>, "
"GStreamer maintainers <gstreamer-devel@lists.freedesktop.org>"); "GStreamer maintainers <gstreamer-devel@lists.freedesktop.org>");