kate: change media type to subtitle/x-kate and update define accordingly

This commit is contained in:
Tim-Philipp Müller 2009-07-10 18:45:28 +01:00
parent e88984ccbd
commit ce0d40b634
6 changed files with 9 additions and 9 deletions

View file

@ -69,7 +69,7 @@ GST_DEBUG_CATEGORY (gst_katetiger_debug);
#endif
static GstStaticCaps kate_caps = GST_STATIC_CAPS (GST_KATE_MIME_TYPE);
static GstStaticCaps kate_caps = GST_STATIC_CAPS (GST_KATE_MEDIA_TYPE);
#define KATE_CAPS (gst_static_caps_get(&kate_caps))
static void
@ -95,8 +95,8 @@ plugin_init (GstPlugin * plugin)
{
GstCaps *caps;
caps = gst_caps_new_simple (GST_KATE_MIME_TYPE, NULL);
if (!gst_type_find_register (plugin, GST_KATE_MIME_TYPE, GST_RANK_PRIMARY,
caps = gst_caps_new_simple (GST_KATE_MEDIA_TYPE, NULL);
if (!gst_type_find_register (plugin, GST_KATE_MEDIA_TYPE, GST_RANK_PRIMARY,
gst_kate_type_find, NULL, caps, NULL, NULL)) {
GST_WARNING ("kate: failed to register typefind");
gst_caps_unref (caps);

View file

@ -48,7 +48,7 @@
G_BEGIN_DECLS
#define GST_KATE_MIME_TYPE "application/x-kate"
#define GST_KATE_MEDIA_TYPE "subtitle/x-kate"
G_END_DECLS

View file

@ -103,7 +103,7 @@ enum
static GstStaticPadTemplate sink_factory = GST_STATIC_PAD_TEMPLATE ("sink",
GST_PAD_SINK,
GST_PAD_ALWAYS,
GST_STATIC_CAPS (GST_KATE_MIME_TYPE)
GST_STATIC_CAPS (GST_KATE_MEDIA_TYPE)
);
static GstStaticPadTemplate src_factory = GST_STATIC_PAD_TEMPLATE ("src",

View file

@ -133,7 +133,7 @@ static GstStaticPadTemplate sink_factory = GST_STATIC_PAD_TEMPLATE ("sink",
static GstStaticPadTemplate src_factory = GST_STATIC_PAD_TEMPLATE ("src",
GST_PAD_SRC,
GST_PAD_ALWAYS,
GST_STATIC_CAPS (GST_KATE_MIME_TYPE)
GST_STATIC_CAPS (GST_KATE_MEDIA_TYPE)
);
static void gst_kate_enc_set_property (GObject * object, guint prop_id,

View file

@ -79,14 +79,14 @@ static GstStaticPadTemplate gst_kate_parse_sink_factory =
GST_STATIC_PAD_TEMPLATE ("sink",
GST_PAD_SINK,
GST_PAD_ALWAYS,
GST_STATIC_CAPS (GST_KATE_MIME_TYPE)
GST_STATIC_CAPS (GST_KATE_MEDIA_TYPE)
);
static GstStaticPadTemplate gst_kate_parse_src_factory =
GST_STATIC_PAD_TEMPLATE ("src",
GST_PAD_SRC,
GST_PAD_ALWAYS,
GST_STATIC_CAPS (GST_KATE_MIME_TYPE)
GST_STATIC_CAPS (GST_KATE_MEDIA_TYPE)
);
GST_BOILERPLATE (GstKateParse, gst_kate_parse, GstElement, GST_TYPE_ELEMENT);

View file

@ -115,7 +115,7 @@ static GstStaticPadTemplate kate_sink_factory =
GST_STATIC_PAD_TEMPLATE ("kate_sink",
GST_PAD_SINK,
GST_PAD_ALWAYS,
GST_STATIC_CAPS (GST_KATE_MIME_TYPE)
GST_STATIC_CAPS (GST_KATE_MEDIA_TYPE)
);
static GstStaticPadTemplate video_sink_factory =