summaryrefslogtreecommitdiffstats
path: root/ext/kate/gstkatetiger.c
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim.muller@collabora.co.uk>2009-07-19 22:29:19 +0100
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2009-07-19 22:29:19 +0100
commit71efbb1e73a557d50093ccaf2ecc47009b7edd95 (patch)
tree700a8e27f5a685f160d24b34e74dc2a767ca2e76 /ext/kate/gstkatetiger.c
parent71e6bbd19fa1845dc07abc561b1ca5a71ae59d60 (diff)
downloadgst-plugins-bad-71efbb1e73a557d50093ccaf2ecc47009b7edd95.tar.gz
gst-plugins-bad-71efbb1e73a557d50093ccaf2ecc47009b7edd95.tar.bz2
gst-plugins-bad-71efbb1e73a557d50093ccaf2ecc47009b7edd95.zip
kate: fix up for additional subtitle/x-kate media type
Diffstat (limited to 'ext/kate/gstkatetiger.c')
-rw-r--r--ext/kate/gstkatetiger.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/ext/kate/gstkatetiger.c b/ext/kate/gstkatetiger.c
index 20df0481..433a3106 100644
--- a/ext/kate/gstkatetiger.c
+++ b/ext/kate/gstkatetiger.c
@@ -108,14 +108,14 @@ enum
ARG_DEFAULT_BACKGROUND_RED,
ARG_DEFAULT_BACKGROUND_GREEN,
ARG_DEFAULT_BACKGROUND_BLUE,
- ARG_DEFAULT_BACKGROUND_ALPHA,
+ ARG_DEFAULT_BACKGROUND_ALPHA
};
static GstStaticPadTemplate kate_sink_factory =
-GST_STATIC_PAD_TEMPLATE ("kate_sink",
+ GST_STATIC_PAD_TEMPLATE ("kate_sink",
GST_PAD_SINK,
GST_PAD_ALWAYS,
- GST_STATIC_CAPS (GST_KATE_MEDIA_TYPE)
+ GST_STATIC_CAPS ("subtitle/x-kate; application/x-kate")
);
static GstStaticPadTemplate video_sink_factory =
@@ -294,10 +294,8 @@ gst_kate_tiger_init (GstKateTiger * tiger, GstKateTigerClass * gclass)
GST_DEBUG_FUNCPTR (gst_kate_tiger_kate_chain));
gst_pad_set_query_function (tiger->katesinkpad,
GST_DEBUG_FUNCPTR (gst_kate_tiger_kate_sink_query));
- gst_pad_use_fixed_caps (tiger->katesinkpad);
- gst_pad_set_caps (tiger->katesinkpad,
- gst_static_pad_template_get_caps (&kate_sink_factory));
- gst_pad_set_event_function (tiger->katesinkpad, gst_kate_tiger_kate_event);
+ gst_pad_set_event_function (tiger->katesinkpad,
+ GST_DEBUG_FUNCPTR (gst_kate_tiger_kate_event));
gst_element_add_pad (GST_ELEMENT (tiger), tiger->katesinkpad);
tiger->videosinkpad =