gst/: Recognise Kate subtitle streams (#550582).
authorTim-Philipp Müller <tim@centricular.net>
Mon, 15 Sep 2008 15:11:18 +0000 (15:11 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Mon, 15 Sep 2008 15:11:18 +0000 (15:11 +0000)
Original commit message from CVS:
* gst-libs/gst/pbutils/descriptions.c:
* gst/typefind/gsttypefindfunctions.c:
Recognise Kate subtitle streams (#550582).

ChangeLog
gst-libs/gst/pbutils/descriptions.c
gst/typefind/gsttypefindfunctions.c

index 2242c19..f8067fb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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):
index 8839c8c..e7635a6 100644 (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 */
index f642f94..b6875d3 100644 (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,