 +
 +  /* get the Ogg packet */
 +  lprintf("Kate packet seen, %ld bytes\n",this->raw ? this->kp.nbytes : this->op.bytes);
-+#if 1
-+  {
-+    size_t i;
-+    unsigned char *ptr = this->raw ? this->kp.data : this->op.packet;
-+    size_t sz = this->raw ? this->kp.nbytes : this->op.bytes;
-+    lprintf("First 16 bytes: %s\n", ptr);
-+    for (i=0; i<((16>sz)?sz:16); ++i) printf("%02x ", ptr[i]);
-+    printf("\n");
-+  }
-+#endif
 +
 +  /* send the packet to Kate */
 +  if ( (buf->decoder_flags & BUF_FLAG_HEADER) &&

+xineplug_kate_la_CFLAGS = $(KATE_CFLAGS)
+endif
+
diff -x xine-config -x 'configure.h*' -x config.guess -x config.sub -x configure -x SlackBuild -x '*.m4' -x ltmain.sh -x libtool -x Makefile -x Makefile.in -ru xine-lib-1-2-767ccb7795a2/src/xine-engine/audio_decoder.c ../xine-lib-1-2-767ccb7795a2/src/xine-engine/audio_decoder.c
--- xine-lib-1-2-767ccb7795a2/src/xine-engine/audio_decoder.c	2008-07-17 16:50:59.000000000 +0100
+++ ../xine-lib-1-2-767ccb7795a2/src/xine-engine/audio_decoder.c	2008-07-22 22:04:04.000000000 +0100
@@ -42,6 +42,36 @@

     }
 
     /* some decoders require a full reinitialization when audio
diff -x xine-config -x configure.ac -x 'configure.h*' -x config.guess -x config.sub -x configure -x SlackBuild -x '*.m4' -x ltmain.sh -x libtool -x Makefile -x Makefile.in -ru xine-lib-1-2-767ccb7795a2/src/xine-engine/osd.c ../xine-lib-1-2-767ccb7795a2/src/xine-engine/osd.c
--- xine-lib-1-2-767ccb7795a2/src/xine-engine/osd.c	2008-07-17 16:50:59.000000000 +0100
+++ ../xine-lib-1-2-767ccb7795a2/src/xine-engine/osd.c	2008-09-28 12:02:45.000000000 +0100
@@ -282,6 +282,7 @@
   rle_elem_t rle, *rle_p=0;
   int x, y;
   uint8_t *c;
+  int ret;
 
   lprintf("osd=%p vpts=%"PRId64"\n", osd, vpts);
   
@@ -386,15 +387,18 @@
     this->event.event_type = OVERLAY_EVENT_SHOW;
     this->event.vpts = vpts;
     ovl_manager->add_event(ovl_manager, (void *)&this->event);
+
+    ret = 1;
   } else {
     /* osd empty - hide it */
     _osd_hide(osd, vpts);
+    ret = 0;
   }
   pthread_mutex_unlock (&this->osd_mutex);  
   
   this->stream->xine->port_ticket->release(this->stream->xine->port_ticket, 1);
   
-  return 1;
+  return ret;
 }
 
 /* normal OSD show
@@ -1646,6 +1650,14 @@
 
   lprintf("osd=%p at (%d,%d) %dx%d\n",osd, x1,y1, width,height );
 
