mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
kate: change media type to subtitle/x-kate and update define accordingly
This commit is contained in:
parent
e88984ccbd
commit
ce0d40b634
6 changed files with 9 additions and 9 deletions
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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 =
|
||||
|
|
Loading…
Reference in a new issue