From 9ca3734e5218f97fde1ffdd30d2d374b1612e8c3 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 28 Oct 2011 15:16:43 +0200 Subject: make elements compile again --- ext/kate/gstkatedec.c | 2 +- ext/kate/gstkateutil.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'ext/kate') 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)) { -- cgit v1.2.1