 +  GST_BUFFER_DURATION (inbuffer) = 5*GST_SECOND;
 +  ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
 +  gst_buffer_ref (inbuffer);
++
++  caps = gst_caps_from_string ("text/plain");
++  fail_unless (caps != NULL);
++  gst_buffer_set_caps (inbuffer, caps);
++  gst_caps_unref (caps);
 +
 +  gst_element_set_bus (kateenc, bus);
 +  /* pushing gives away my reference ... */

+      {
+        GstFormat src_fmt, dest_fmt;
+        gint64 src_val, dest_val;
+
+        gst_query_parse_convert(query, &src_fmt, &src_val, &dest_fmt, &dest_val);
+        if (!gst_kate_enc_convert(pad, src_fmt, src_val, &dest_fmt, &dest_val)) {

+
+  g_list_free(headers);
+
+  GST_LOG_OBJECT (ke, "headers pushed");
+
+  return rflow;
+}
+
