 +  parse->streamheader = NULL;
 +
 +  parse->streamheader_sent = TRUE;
++
++  return GST_FLOW_OK;
 +}
 +
 +static void

+  gst_element_add_pad (GST_ELEMENT (parse), parse->srcpad);
+}
+
+static void
+gst_kate_parse_set_header_on_caps (GstKateParse * parse, GstCaps * caps)
+{
+  GstBuffer *buf;

+  GValue array = { 0 };
+  GValue value = { 0 };
+
+  g_assert (parse);
+
+  if (!caps) return GST_FLOW_ERROR;
+  if (!parse->streamheader) return GST_FLOW_ERROR;
+
+  structure = gst_caps_get_structure (caps, 0);
+
+  headers = parse->streamheader;
+  g_value_init (&array, GST_TYPE_ARRAY);
+  while (headers) {
