summaryrefslogtreecommitdiff
path: root/ext/kate
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2011-10-28 15:16:43 +0200
committerWim Taymans <wim.taymans@collabora.co.uk>2011-10-28 15:16:43 +0200
commit9ca3734e5218f97fde1ffdd30d2d374b1612e8c3 (patch)
tree314939451ba2baf30b421cd76768438bd45bf7f2 /ext/kate
parenta54cf2ccac34346b8064ae839ab59ad35c911885 (diff)
downloadgstreamer-plugins-bad-9ca3734e5218f97fde1ffdd30d2d374b1612e8c3.tar.gz
make elements compile again
Diffstat (limited to 'ext/kate')
-rw-r--r--ext/kate/gstkatedec.c2
-rw-r--r--ext/kate/gstkateutil.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/ext/kate/gstkatedec.c b/ext/kate/gstkatedec.c
index 901f9b40e..6b1ee73d4 100644
--- a/ext/kate/gstkatedec.c
+++ b/ext/kate/gstkatedec.c
@@ -289,7 +289,7 @@ gst_kate_dec_chain (GstPad * pad, GstBuffer * buf)
buffer = gst_buffer_new_and_alloc (len + 1);
if (G_LIKELY (buffer)) {
const char *mime = plain ? "text/plain" : "text/x-pango-markup";
- GstCaps *caps = gst_caps_new_simple (mime, NULL);
+ GstCaps *caps = gst_caps_new_empty_simple (mime);
gst_caps_unref (caps);
/* allocate and copy the NULs, but don't include them in passed size */
gst_buffer_fill (buffer, 0, escaped, len + 1);
diff --git a/ext/kate/gstkateutil.c b/ext/kate/gstkateutil.c
index 811a838d4..0bcb74b14 100644
--- a/ext/kate/gstkateutil.c
+++ b/ext/kate/gstkateutil.c
@@ -295,11 +295,11 @@ gst_kate_util_decoder_base_chain_kate_packet (GstKateDecoderBase * decoder,
}
if (strcmp (decoder->k.ki->category, "K-SPU") == 0 ||
strcmp (decoder->k.ki->category, "spu-subtitles") == 0) {
- *src_caps = gst_caps_new_simple ("video/x-dvd-subpicture", NULL);
+ *src_caps = gst_caps_new_empty_simple ("video/x-dvd-subpicture");
} else if (decoder->k.ki->text_markup_type == kate_markup_none) {
- *src_caps = gst_caps_new_simple ("text/plain", NULL);
+ *src_caps = gst_caps_new_empty_simple ("text/plain");
} else {
- *src_caps = gst_caps_new_simple ("text/x-pango-markup", NULL);
+ *src_caps = gst_caps_new_empty_simple ("text/x-pango-markup");
}
GST_INFO_OBJECT (srcpad, "Setting caps: %" GST_PTR_FORMAT, *src_caps);
if (!gst_pad_set_caps (srcpad, *src_caps)) {