 +gst_kate_enc_base_init (gpointer gclass)
 +{
 +  static const GstElementDetails element_details = {
-+    "Kate bitstream encoder",
++    "Kate stream encoder",
 +    "Codec/Encoder/Subtitle",
-+    "Encodes Kate text bitstreams",
++    "Encodes Kate streams from text or subpictures",
 +    "ogg.k.ogg.k <ogg.k.ogg.k@googlemail.com>"
 +  };
 +  GstElementClass *element_class = GST_ELEMENT_CLASS (gclass);

+#define GST_CAT_DEFAULT gst_kateparse_debug
+
+static const GstElementDetails gst_kate_parse_details = {
+  "Kate parser",
+  "Codec/Parser/Subtitle",
+  "parse raw kate streams",
+  "ogg.k.ogg.k <ogg.k.ogg.k at googlemail dot com>"

+      break;
+  }
+
+  gst_object_unref (ke);
+
+  return res;
+}
+
+static gboolean gst_kate_enc_sink_event (GstPad * pad, GstEvent * event)
+{
+  GstKateEnc *ke = GST_KATE_ENC (gst_pad_get_parent (pad));
+  GstStructure *structure;
