diff --git a/ChangeLog b/ChangeLog index 2242c19bbd..f8067fb690 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-09-15 Tim-Philipp Müller + + * gst-libs/gst/pbutils/descriptions.c: + * gst/typefind/gsttypefindfunctions.c: + Recognise Kate subtitle streams (#550582). + 2008-09-13 Tim-Philipp Müller * gst-libs/gst/audio/audio.h: (GST_AUDIO_FIELD_SIGNED): diff --git a/gst-libs/gst/pbutils/descriptions.c b/gst-libs/gst/pbutils/descriptions.c index 8839c8cdab..e7635a6783 100644 --- a/gst-libs/gst/pbutils/descriptions.c +++ b/gst-libs/gst/pbutils/descriptions.c @@ -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 */ diff --git a/gst/typefind/gsttypefindfunctions.c b/gst/typefind/gsttypefindfunctions.c index f642f94800..b6875d3482 100644 --- a/gst/typefind/gsttypefindfunctions.c +++ b/gst/typefind/gsttypefindfunctions.c @@ -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,