 +static GstFlowReturn
 +gst_kate_parse_parse_packet (GstKateParse * parse, GstBuffer * buf)
 +{
-+  GstFlowReturn ret;
++  GstFlowReturn ret = GST_FLOW_OK;
++
++  g_assert(parse);
 +
 +  parse->packetno++;
 +

+
+#endif /* __GST_KATE_H__ */
--- /dev/null	2008-04-05 19:24:09.000000000 +0100
+++ gst-plugins-bad/ext/kate/gstkateparse.c	2008-06-29 19:16:44.000000000 +0100
@@ -0,0 +1,594 @@
+/* GStreamer
+ * Copyright (C) <2004> Thomas Vander Stichele <thomas at apestaart dot org>
+ * Copyright (C) 2006 Andy Wingo <wingo@pobox.com>

+
+#endif /* __GST_KATE_DEC_H__ */
--- /dev/null	2008-04-05 19:24:09.000000000 +0100
+++ gst-plugins-bad/ext/kate/gstkateenc.c	2008-07-02 22:05:40.000000000 +0100
@@ -0,0 +1,1526 @@
+/*
+ * GStreamer
+ * Copyright 2005 Thomas Vander Stichele <thomas@apestaart.org>
