gst/: Recognise Kate subtitle streams (#550582).

Original commit message from CVS:
* gst-libs/gst/pbutils/descriptions.c:
* gst/typefind/gsttypefindfunctions.c:
Recognise Kate subtitle streams (#550582).
This commit is contained in:
Tim-Philipp Müller 2008-09-15 15:11:18 +00:00
parent b579580991
commit 029f05635d
3 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2008-09-15 Tim-Philipp Müller <tim.muller at collabora co uk>
* gst-libs/gst/pbutils/descriptions.c:
* gst/typefind/gsttypefindfunctions.c:
Recognise Kate subtitle streams (#550582).
2008-09-13 Tim-Philipp Müller <tim.muller at collabora co uk>
* gst-libs/gst/audio/audio.h: (GST_AUDIO_FIELD_SIGNED):

View file

@ -207,6 +207,7 @@ static const FormatInfo formats[] = {
/* subtitle formats with static descriptions */
{"application/x-subtitle-sami", N_("Sami subtitle format"), 0},
{"application/x-subtitle-tmplayer", N_("TMPlayer subtitle format"), 0},
{"application/x-kate", N_("Kate subtitle format"), 0},
/* add variant field to typefinder? { "application/x-subtitle", N_("subtitle"), 0}, */
/* formats with dynamic descriptions */

View file

@ -3180,6 +3180,8 @@ plugin_init (GstPlugin * plugin)
zip_exts, "PK\003\004", 4, GST_TYPE_FIND_LIKELY);
TYPE_FIND_REGISTER_START_WITH (plugin, "application/x-compress",
GST_RANK_SECONDARY, compress_exts, "\037\235", 2, GST_TYPE_FIND_LIKELY);
TYPE_FIND_REGISTER_START_WITH (plugin, "application/x-kate",
GST_RANK_MARGINAL, NULL, "\200kate\0\0\0", 8, GST_TYPE_FIND_LIKELY);
TYPE_FIND_REGISTER (plugin, "audio/x-flac", GST_RANK_PRIMARY,
flac_type_find, flac_exts, FLAC_CAPS, NULL, NULL);
TYPE_FIND_REGISTER (plugin, "audio/x-vorbis", GST_RANK_PRIMARY,